Variable Description $0 The name of the command being executed. For shell scripts, this is the path with which it was invoked. $n These variables correspond to the arguments with which a script was invoked. Here n is a positive decimal number corresponding to the position of an argument (the first argument is $1; the second argument is $2, and so on). $# The number of arguments supplied to a script. $* All the arguments are double quoted. $@ All the arguments are individually double quoted. $? The exit status of the last command executed. $$ The process number of the current shell. For shell scripts, this is the process ID under which they are executing. $! The process number of the last background command.
October 17, 2010
Shell Variables
Subscribe to:
Post Comments (Atom)
Archive
Flickr
Now Playing
Fav Blog
-
-
-
比住院更讓人恐慌的,是出院:長照 3.0 如何接住每一個手足無措的家庭6 days ago
-
-
-
How to take care of your hair this winter8 years ago
0 意見:
Post a Comment