Question: Consider the following sample output. Do not assume that any other commands are executed between the creation of this sample and the commands in each

Consider the following sample output. Do not assume that any other commands are executed between the creation of this sample and the commands in each of the followed questions. ranas-mbp:ch13 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=$1 n1 = $n2 n2=$temp fi total=0 while { $n1 -le $n2] do total='expr $total + $n1" n1='expr $n1 + 1 done echo "$total" exito ranas-mbp:ch13 ranas 1. The output of executing the command /script.sh 4 9 is 00 013 Ousage:./script.sh num1 num2 039
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
