GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting
Next Question 
 Shell Scripting  |  Question 1 of 47    Print  
What is $*?

  
Total Answers and Comments: 6 Last Update: December 30, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Muthu
 
Will display all the commandline arguments that are passed to the script

Above answer was rated as good by the following members:
jlanese1
June 02, 2005 07:19:08   #1  
Muthu        

RE: What is $*?
Will display all the commandline arguments that are passed to the script
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 05, 2005 00:55:55   #2  
abhay        

RE: What is $*?
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

 
Is this answer useful? Yes | No
July 27, 2005 16:01:48   #3  
akebno        

RE: What is $*?
$1: the 1st parameter
$2: the 2nd parameter
...
$*
All parameters in the command line


 
Is this answer useful? Yes | No
July 29, 2005 08:10:55   #4  
Raj        

RE: What is $*?
Yes $* displays values of all positional parameters set
 
Is this answer useful? Yes | No
May 22, 2008 05:45:45   #5  
poornimay Member Since: May 2008   Contribution: 7    

RE: What is $*?
it is a questional parameter
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
December 30, 2008 02:32:44   #6  
vidyamurali2003 Member Since: December 2008   Contribution: 9    

RE: What is $*?
It contains the actual arguments passed to a shell script
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape