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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f38c9502765_26866f38c946e4a8.jpg)

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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
