BASH scripting TIP #1
In bash script file
$? - store exit value of last command that was executed
$* - store all args
"$@" - store all args, individually with qoute "$1", "$2"
$1 - first arg
$2 - second arg
$n - nth arg
$? - store exit value of last command that was executed
$* - store all args
"$@" - store all args, individually with qoute "$1", "$2"
$1 - first arg
$2 - second arg
$n - nth arg
Comments
Post a Comment