Question: Please help me find the 4 errors in this script: The following is an example of the output you should see once all 4 errors

Please help me find the 4 errors in this script:

The following is an example of the output you should see once all 4 errors are fixed.

tmoyer2@itis-3246:~/scripting-2$ ./0-basic-syntax.sh Tom Welcome to ITIS 3246 Hi Tom foo is a common variable name in CS assignments bar is a common variable name in CS assignments baz is a common variable name in CS assignments

Script:

#!/BIN/BASHSHELL

class = "ITIS 3246" echo "Welcome to $class"

if [[ -z $1 ]] then echo "Please tell me your name by running the script this way:" echo "$0 " exit -1 end

echo "Hi $1"

for x in foo bar baz echo "$x is a common variable name in CS assignments"

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!