Question: ranas-mbp:ch 13 rana$ cat script.sh if [ $# -ge 2]; then n1=$1 n2=$2. else echo usage: $0 num1 num2 exit 1 fi if ($n1 -gt

 ranas-mbp:ch 13 rana$ cat script.sh if [ $# -ge 2]; then

n1=$1 n2=$2. else echo "usage: $0 num1 num2" exit 1 fi if

ranas-mbp:ch 13 rana$ cat script.sh if [ $# -ge 2]; then n1=$1 n2=$2. else echo "usage: $0 num1 num2" exit 1 fi if ($n1 -gt $n2); then temp=$n1 n =$n2 n2=$temp fi total=0 while | Snl -le Sn2 ] do total='expr Stotal + Sni 177 = expr $11 + 7 done echo 'Stotal" done echo "$total" exit 0 ranas-mbp:ch 13 rana$ 1. The output of executing the command /script.sh 8 3 is 00 Ousage: /script.sh num1 num2 011 033 2. The output of executing the command /script.sh 5 7 9 is Ousage: /script.sh numi num 18 21 24

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!