This entry is very new in the tldr-pages project, hence translation data is currently unavailable for a while.
Dollar sign
bash 변수를 확장. 더 많은 정보: https://gnu.org/software/bash/manual/bash.html#Shell-Variables.
- 변수 출력:
echo $
변수
- 이전 명령의 종료 상태를 인쇄:
echo $?
- 0에서 32767 사이의 임의의 숫자를 출력:
echo $RANDOM
- 프롬프트 문자열 중 하나를 출력:
echo $
PS1|PS2|PS3|PS4
command
출력으로 확장하여 실행. 백틱을 통해command
를 묶는 것과 같음:
$(
명령어)