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
$* - 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
$*- 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 do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.
Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"
Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram
What makes c shell a more preferable option than the bourne shell?
If you have a string "one two three", which shell command would you use to extract the strings?
Explain about shebang?
What is a shell in operating system?
What exactly is a shell?
What are the zombie processes?
What is option in shell script?
Is shell a part of kernel?
I have 2 files and I want to print the records which are common to both.