Nguyễn Thị Lan
New member
Which of the following is used for storing the number of positional parameters?
A. $n
B. $#
C. $*
D. $2
A. $n
B. $#
C. $*
D. $2
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/sh
# emp.sh
echo “ The number of arguments specified are $#
The arguments are $*”
Now execute the script:
$ emp.sh director.lst // director.lst is command line argument given to the script.
The number of arguments specified is 1
The arguments are director.lst