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 |
How to change our default shell?
How does path variable work?
Is it possible to substitute "ls" command in the place of "echo" command?
What is shell variable?
Write a command sequence to find the count of each word?
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
write a shell script to identify the given string is palindrome or not?
17 Answers CTS, HP, IBM, InfoEst, Wipro,
When you login to a c shell, which script would be run first?
How important is shell scripting?
What is a command line shell?
how to read systems current date and time
What are different types of shell?