tip/tip. Ubuntu2013. 4. 26. 16:42
VariableDescription
$0The filename of the current script.
$nThese 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. If a script receives two arguments, $* is equivalent to $1 $2.
$@All the arguments are individually double quoted. If a script receives two arguments, $@ is equivalent to $1 $2.
$?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.


'tip > tip. Ubuntu' 카테고리의 다른 글

cygwin 1.7.x 한글 설정 & sshd  (0) 2013.07.12
[Linux] locale  (0) 2013.04.29
[Ubuntu] unix signal codes  (0) 2013.04.26
[linux] apt-get dpkg  (0) 2013.04.21
[Ubuntu] Linux APM  (0) 2013.04.16
Posted by wooix