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

Answer Posted / narendrasairam

$# - Number of argument passed

$* - Array of arguments given (or) passed arguments as an array

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is in a script?

571


Explain about gui scripting?

626


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

3156


What is a command line shell?

565


Tell something about the super block in shell scripting?

574






Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

704


Which scripting language is best for automation?

536


Suppose you execute a command using exec, what will be the status of your current process in the shell?

581


What is basename in shell script?

591


What is an sh file?

559


Is it possible to substitute "ls" command in the place of "echo" command?

619


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

598


What does chmod do?

577


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5236


What is the best scripting language?

566