what are command line arguments? what is the need of those?



what are command line arguments? what is the need of those?..

Answer / 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

More Shell Script Interview Questions

How to write a function?

0 Answers  


What is a boot block?

0 Answers  


How will you find the 99th line of a file using only tail and head command?

0 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  






How to create environment variables?What are the conditions for creating variables?

1 Answers   Infosys, Wipro,


How to change our default shell?

5 Answers  


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

0 Answers   Tech Mahindra,


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

0 Answers  


What is bash used for?

0 Answers  


What are the types of script?

0 Answers  


What is a beat in a script?

0 Answers  


Categories