what are command line arguments? what is the need of those?
Answer Posted / sumit rawat
Unix compiler reads the commands line by line and assign the arguments to it positionally. Arguments are passed from the command line into a shell program using the positional parameters $1 through to $9. Each parameter corresponds to the position of the argument on the command line.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why do we use shell scripting?
How to print the first array element?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What are the different communication commands available in the shell?
What is awk script?
How to get the last line from a file using just the terminal?
What language is shell scripting?
How to print pid of the current shell?
Is shell scripting easy to learn?
What is bourne shell scripting?
How do I stop script errors?
What is the first line in a shell script?
Why are shell scripts used?
What is the use of .sh file?
What does $1 mean in bash?