Question: Marisa executes a shell script using the following syntax: . / script 1 . sh dog cat rabbit. What line can be used within the

Marisa executes a shell script using the following syntax: ./script1.sh dog cat rabbit. What line can be used within the script to print the value "cat"?
a.
echo $2
b.
echo $1
c.
echo $arg1
d.
echo $arg2

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 Programming Questions!