Question: Exercise 5 In this exercise, you will create a script called string_ops.sh that uses the various string operators The string ops.sh script will Use one

 Exercise 5 In this exercise, you will create a script called

Exercise 5 In this exercise, you will create a script called string_ops.sh that uses the various string operators The string ops.sh script will Use one command line argument, which will be "Hello" Assign the value of the first command line argument to a local variable called STRING Use three if then statement to compare the value of local variable STRING Determine which string operators and messages to use that produces the following output when run tiabuser Centos seripting_lab]Spah string_ops.sh Hello First argument is equal to Hello First argument is not equal to Good Bye First argument is not null llabusercentos scripting lab]I WARNING: In the If then statements, to avoid syntax error messages, there must be a space before and after each bracket and also between each element within the brackets Here are some hints The first line in string_ops.sh will be #1/bin/bash The second line in string_ops.sh assigns the first command line argument of string_ops.sh to variable STRING. HINT: Look at line 5 of arguments.sh in the example screenshot for Exercise 2. The only difference is the variable name Also, review slides Assigning Variable Values and Command Line Arguments in Unit 18. REMEMBER: There is no space before or after the = sign

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!