Question: . Exercise 6 In this exercise, you will create a script called case_op.sh that uses the case statement The case_op.sh script will Use one command
. Exercise 6 In this exercise, you will create a script called case_op.sh that uses the case statement The case_op.sh script will Use one command line argument. It will be one of the four is shown below Handle each of the three allowed values (start, stop, reset) for the command line argument as shown below. restart is NOT a valid value. Determine how to write the case statement that produces the following output when run labuser Centos scripting lab]$ 11 abuser Centos scripting_lab]$ sh case_op.sh start Result is 1 [labuser@centos scripting lab]S sh case_op.sh stop Result is 2 IlabuserCentos scripting lab]S sh case_op.sh reset Result is 3 11abuserCentos scripting_lab]S sh case_op.sh restart Usage: sh case_op.sh start i stop reset IlabuserCentos scripting labis
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
