what do u mean by $#,$* in unix programming?

Answer Posted / siva prasad

$#- total no of positional parameters excluding the program
name
$*- all the arguments excluding the program name

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you find out how long the system has been running?

520


What is a beat in a script?

529


What is meant by $1 in shell script?

544


How do I set bash as default shell mac?

547


What is shell application?

561






What lives in a shell?

528


What is the first line of a shell script called?

565


What is difference between bash and shell?

544


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2215


What is shell and shell script?

548


What shell is bin sh?

521


How does ls command work?

577


What is shell company all about?

563


What is shell terminal?

542


What does $@ mean in shell?

587