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 meant by dos operating system?
Why is it called a shell?
How do you create a shortcut in linux?
shell script for reverse the string
Where are cowrie shells found?
What can you do with powershell?
Can shell script run on windows?
Explain about echo command?
What does $@ mean in shell?
Is powershell a language?
What are types of shells?
What is echo in shell?
Is shell scripting a programming language?
How do you debug a script?
What is the first line in every perl script called?