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

What is the significance of the shebang line in shell scripting?

1


Explain about shebang?

33


Differentiate between ‘ and ” quotes.

1


What is the command to find out today's date?

32


Explain about debugging?

24






What is the conditional statement in shell scripting?

28


What is the use of break command?

16


What command needs to be used to take the backup?

1


How to find all the files modified in less than 3 days and save the record in a text file?

1


I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

19


How to print pid of the current shell?

2


how will you find the total disk space used by a specific user?

15


Can you write a script to portray how set –x works?

1


How to calculate the number of passed arguments?

1


How to print the first array element?

1