Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you read arguments in a shell program - $1, $2 ..?

Answer Posted / madhavi

to read command line argments we hav to use echo $1
$2........whre $0-gives name of program,$#-gives number of
arguments passed and $* gives all the arguments.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we create command aliases in a shell?

950


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1029


Why is used in shell scripting?

946


Can you write a script to portray how set –x works?

966


Is cmd a shell?

968


What is the use of .sh file?

1067


How do I read a .sh file?

1041


What is the use of "$?" Sign in shell script?

1114


What is the difference between scripting and coding?

985


What makes c shell a more preferable option than the bourne shell?

924


What is a boot block?

966


Explain about non-login shell files?

1147


What is another name for a bash shell script that you might see?

1426


How do I run a powershell script?

1064


What is the difference between grep and egrep?

1081