Programming and posix - April 2002
April 3, 2002
Solution Symposium
Page 75
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