What is $*?

Showing Answers 1 - 13 of 13 Answers

Muthu

  • Jun 2nd, 2005
 

Will display all the commandline arguments that are passed to the script

abhay

  • Jul 5th, 2005
 

Its mainly used for showing up all params. 
i.e - if you execute script in following way to which we are trying to pass 4 params 
./test.sh 1 "hello world" 2 "test" 
and if we print inside script 
echo $* 
it will print  
null1 hello world 2 testnull

akebno

  • Jul 27th, 2005
 

$1: the 1st parameter 
$2: the 2nd parameter 
... 
$* 
All parameters in the command line 
 

  Was this answer useful?  Yes

Raj

  • Jul 29th, 2005
 

Yes, $* displays values of all positional parameters set

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.