5. Positional Parameters
·
쿠버네티스/shell programming
Positional Parameters 위치 매개변수 (positional parameters) 입력하는 arguement들은$0, $1, $2와 같이 변수에 저장되어 script에 저달됨 name of shell script : $0 first arguement : $1 second arguement : $2 Number of arguements in $# List of all parameters in $@, $* Special sehll variables : 위치 매개변수 외에 특별히 쉘이 정해놓고 사용하는 변수. 로그인 shell의 PID : $$ 현재 작업 디렉토리 : $PWD 부모 프로세스 ID : $PPID 예제를 통해 확인하기 positional parameter 출력 쉘 스크립트 만들기. ..