'변수'에 해당되는 글 1건

  1. 2013.08.13 [SHELL] 특수 변수

[SHELL] 특수 변수

CS/Shell/Perl/Python 2013. 8. 13. 10:27

원문 : http://unixhelp.ed.ac.uk/scrpt/scrpt2.2.2.html


 Name 

 Description

 $1 - $9

 위치 파라미터의 값

 $0

 현재 실행되고 있는 command의 이름

 $#

 위치 파라미터의 개수

 $?

 가장 마지막에 실행된 command의 exit status

 $$

 현재 shell의 pid

 $!

 background 에서 가장 마지막에 실행된 pid

 $-

 the current options supplied to this invocation of the shell

 $*

 a string containing all the arguments to theshell, starting at $1

 $@

 same as above, except when quoted


: