How to modify exitstatus.sh to print a message for each of the three exit statuses described in man ls. 0 - OK 1 - minor problem 2 - serious problem exitstatus.sh #!/bin/bash ls > /dev/nullif [ $?...

How to modify exitstatus.sh to print a message for each of the three exit statuses described in man ls. 0 - OK 1 - minor problem 2 - serious problem exitstatus.sh #!/bin/bash ls > /dev/null if [ $? -eq 0 ]; then echo "It seems to have worked, exit status 0" fi ls asdf 2> /dev/null if [ $? -eq 0 ]; then echo "It seems to have worked, exit status 0" else echo "An error occured, non-zero exit code." fi Solve fast please

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here