what do u mean by $#,$* in unix programming?

Answer Posted / anita lohia

$# The number of command line argument
$* All the arguments on the command line

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Determine the output of the following command: name=shubham && echo ‘my name is $name’.

622


Can shell script run on windows?

646


What is echo $shell?

704


How to calculate the number of passed arguments?

619


How to open a read-only file in the shell?

720






How to find duplicate record in file using shell script?

943


What is the lifespan of a variable inside a shell script?

1225


What is the command to find out today's date?

679


What is shift command in shell script?

610


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3703


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

643


How will you pass and access arguments to a script in linux?

680


Why are there shells on the beach?

682


What is the use of "$#" in shell scripting?

619


Given a file find the count of lines containing the word "abc".

1119