Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago