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

wats the she bang statment with syntax?

3 Answers  


What is a batch file used for?

0 Answers  


How do I edit a .sh file?

0 Answers  


How do I run a shell script on a mac?

0 Answers  


How to check if a directory exists?

0 Answers  


What are the 4 basics of OOP?

1 Answers   Amazon, Infosys,


What does the sh command do?

0 Answers  


How will you emulate wc –l using awk?

0 Answers  


How to check if the previous command was run successfully?

0 Answers  


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

0 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


how did u debugging in unix/ linux platform ??( project Related)

2 Answers   Symphony,


Categories