Shell Scripting - part 2
Command Line Arguments ------------------------------- Here we will discuss some more about command line arguments( values passed along with script like flags in commands) and how they can be accessed in script 1)Name of the program The name of the program is stored in variable '0' So the value can be accessed as ${0} e.g:- vi file1.sh --------------------------------------------------------------------- #!/bin/bash echo ${0} --------------------------------------------------------------------- The output of the program will be like . /file.sh 2)All arguments passed along with script All values passed to the script(command line arguments) will be stored in variable '@' So the value can be accessed as ${@} e.g:- vi file2.sh --------------------------------------------------------------------- #!/bin/bash echo ${0} -------------------------------------------------...