Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 74
hp e3000
programming
and posix
posix shell parameters
$0 - name of the shell script
$n where n=1..9 - the nth positional parameter
$# - the number of positional parameters
$@ - all positional parameters; if quoted, all positional
parameters as separate quoted arguments
$* - all positional parameters; if quoted, all positional
parameters as a single quoted argument
shift n - shift all positional parameters left by n
positions