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

Why are there shells on the beach?

1156


What is shell environment?

1004


What can scripts do?

1105


What are types of shells?

1028


What is basename in shell script?

1062


What are scripts in psychology?

1072


Which shell is the best?

1000


How to find all the files modified in less than 3 days and save the record in a text file?

1062


How to get the 3rd element/column from each line from a file?

1193


What is path variable bash?

1049


What is sudo command?

1064


How can you get the value of pi till a 100 decimal places?

972


How to get the first line from a file using just the terminal?

1128


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3479


What does $@ mean in shell?

1048