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: