Special Variable Description $# Number of positional parameters (arguments) passed to the script. $? Exit status of the last executed command. A value of 0 usually indicates success, and any non-zero value indicates an error. $0 The name of the script or command that is being executed. $1 , $2 , ... The first, second, and subsequent positional parameters passed to the script. $1 is the first argument, $2 is the second, and so on. $* All the positional parameters passed to the script, treated as a single word. "$@" All the positional parameters passed to the script, treated as separate words. This preserves each parameter as a distinct word, even if they contain spaces. ...
Comments
Post a Comment