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

What is an sh file?

0 Answers  


Can we run shell script in windows?

0 Answers  


How do we delete all blank lines in a file?

0 Answers  


What is scripting autism?

0 Answers  


What are the default permissions of a file when it is created?

0 Answers  






How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.

6 Answers   TCS,


How do I start a shell script?

0 Answers  


What is Linux language details

0 Answers   Quick Heal,


Is shell script a programming language?

0 Answers  


HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL SHELL SCRIPT?

3 Answers   Patni,


Write a shell program to test whether a given number is even or odd?

8 Answers  


1.Write a script, which converts a number from binary to hexadecimal format or vice versa.

1 Answers   ADP,


Categories