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
What is echo $shell?
What is sudo command?
What does $$ mean in shell script?
What are the advantages of shell scripting?
What is a program shell?
What is the conditional statement in shell scripting?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is inside a seashell?
What is bourne shell scripting?
What is the first line of a shell script called?
What is computer cli?
What does path stand for?
What does debug script mean?
How can you find out how long the system has been running?
Write the syntax for "if" conditionals in linux?