Question: 2 . Comment every line in the script bellow and tell what each line is doing. Look up the command in the man pages if
Comment every line in the script bellow and tell what each line is doing. Look up the command in the man pages if you don't understand it The script name is 'myargs'. Copy the script and run it on your system and give detailed comments of what each line is doing.
#binbash
# Script name: myargs
#
# Date:
# Name:
# Script to test command line arguments
if $# ; then
echo "Usage: $basename $ arg arg argn"
&
exit
fi
echo "The name of this script is $
echo "The arguments are $
echo "The first argument is $
echo "The second argument is $
echo "The number of arguments is $#
previousargs$
set niel khail nobo
echo "All the positional parameters are $
echo "The number of positional parameters is $#
echo $previousargs
set
echo "Current args after are : $
set $previousargs
echo $
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
