Linux-explain the function


Question:

Linux: Explain the function

Using the following script:

#!/bin/bash
#This is a shell script
echo $#
echo $0
echo $1
echo $2
echo $3
echo $*
name1=$1
#name2=$2
echo $name1 "is the first parameter"
echo $name2 "is the second parameter"
echo $
echo $0 "was executed with" $# "parameters on the command line."

Explain the function of each line in the script, assuming that it is executed as follows:

Solution Preview :

Prepared by a verified Expert
Other Subject: Linux-explain the function
Reference No:- TGS01937182

Now Priced at $20 (50% Discount)

Recommended (90%)

Rated (4.3/5)