Question: The following script is meant to initialize the bash variable course to CS136L and then compare it to the first argument provided to the script.

The following script is meant to initialize the bash variable course to CS136L and then compare it to the first argument provided to the script. If the values match, the script should print Found and if the values do not match, the script should print Not Found. There are a number of syntax errors in the script. Fix the errors. To test the script, you can type the command to run in the Console View and then use the Execute Command button. For example, if we type ./compare.sh Hello in the Console View and press Execute Command the script should print Not Found (if it has been fixed). The following script is meant to initialize the bash variable course to

The foloweng seript is meant to initialze the bash variable course to cs136c and then compare it to the first argument provided to the script. If the values macch the script should print found and if the values do not match, the script should print Not found. There are a number of syntac errors in the script. Fix the errors. To test the script, you can type the command to run in the Console Vew and then use the Execute Comard button. For example, Cwe type ./ conpare. st liel1s in the Console View and press Execute otamand the script should print Not Tound fif it has been fared Use the suamis cade button to attempt the question. There are unlimited attempts avalable

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!