Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started