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
How do I run a script from command prompt?
How will you pass and access arguments to a script in linux?
What is the conditional statement in shell scripting?
What is k shell?
What is bash shell command?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
Is shell scripting a programming language?
How do I read a .sh file?
Why are shell scripts used?
Explain about the exit command?
shell script for reverse the string
What is awk script?
What does path stand for?
What does echo $0 do?
What happens on a system call?