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 use of "cut" command?
What is shell scripting?
Write a shell script to looking at the log file to see if the test has passed or not
How does ls command work?
How do I run a script from command prompt?
How will you emulate wc –l using awk?
How do I run a .sh file on mac?
What are the 4 basics of OOP?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Determine the output of the following command: name=shubham && echo ‘my name is $name’.
what are bootlevel in linux?which level is booting by default.
Which is better perl or shell scripting?