what do u mean by $#,$* in unix programming?
Answers were Sorted based on User's Feedback
Answer / vipul dalwala
$# - number of command line arguments or positional
parameters
$* - All of the positional parameters, seen as a single word
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / narendrasairam
$# - Number of argument passed
$* - Array of arguments given (or) passed arguments as an array
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / anita lohia
$# The number of command line argument
$* All the arguments on the command line
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / 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 |
Answer / satyabrata
$# it contains the no of positional parameters
$* it contains all positional parameters as a single string
| Is This Answer Correct ? | 3 Yes | 1 No |
What is the use of echo in shell script?
What is the use of a shebang line?
What is awk in shell scripting?
How to handle the delimiter unit seperator in Unix
write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
What is an inode block?
How do I run a .sh file?
How Connect to a Database in Shell Programming?
What exactly is a shell?
How will you pass and access arguments to a script in linux?
What is the difference between a shell variable that is exported and the one that is not exported?
What is the first line in a shell script?