GeekInterview.com
Series: Subject: Topic:
Question: 55 of 55

What is $*?

Asked by: Interview Candidate | Asked on: Jul 29th, 2005
Showing Answers 1 - 7 of 7 Answers
Muthu

Answered On : Jun 2nd, 2005

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

Yes  3 Users have rated as useful.
  
Login to rate this answer.
abhay

Answered On : 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

Yes  1 User has rated as useful.
  
Login to rate this answer.
akebno

Answered On : Jul 27th, 2005

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

  
Login to rate this answer.
Raj

Answered On : Jul 29th, 2005

Yes, $* displays values of all positional parameters set

  
Login to rate this answer.
poornimay

Answered On : May 22nd, 2008

View all answers by poornimay

it is a questional parameter

  
Login to rate this answer.

It contains the actual arguments passed to a shell script

  
Login to rate this answer.
vijayanand86

Answered On : Jan 20th, 2010

View all answers by vijayanand86

Contains the list of arguments passed to the function.

  
Login to rate this answer.

Give your answer:

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

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.