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 |
Hi, i want to zip the files that generates automatically every few minutes (files generated are in .arc extension)....any body write a script for this... thanks in advance
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
c program to check whether all the directories in the path exists has read and write permission
What is option in shell script?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How important is shell scripting?
How do you schedule a command to run at 4:00 every morning?
Explain about debugging?
How can you find out how long the system has been running?
How do I debug a shell script?
What does it mean to debug a script?
What is c in shell script?