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 |
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
What is shell application?
Where cron file kept?
What is the meaning of $1 in shell script?
How do I run a shell script in powershell?
write a program to display all the files from the current directory which are created in particular month
how to read systems current date and time
How can the contents of a file inside jar be read without extracting in a shell script?
What is meant by $1 in shell script?
How do I set bash as default shell mac?
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?
What is "test"? How it is used in shell scripting?