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


Please Help Members By Posting Answers For Below Questions

What are the different types of commonly used shells on a typical linux system?

548


What's the difference between scripting and coding?

593


What is subshell?

526


Is bash a shell script?

595


How do I edit a .sh file?

621






What is ms powershell?

579


What can you do with powershell?

601


What is the syntax of "nested if statement" in shell scripting?

627


What is an inode block?

575


How do I run a bin bash script?

567


What does $@ mean in shell?

590


Write down the syntax for all the loops in shell scripting.

654


Can we run shell script in windows?

577


Why is shell scripting important?

570


Where is bash history?

504