[Bash] Ternary operator in Bash
- IT
- 2019. 2. 6.
728x90
echo $([ ${UID} == 501 ] && echo "true" || echo "false")
반응형
'IT' 카테고리의 다른 글
맥 부팅할 때, 자동실행 프로그램 비활성화하기 (0) | 2019.02.06 |
---|---|
Mac에서 brew 이용하여 Java 6 설치 (0) | 2019.02.06 |
[Linux] 파일이 너무 많아서 삭제가 안될 때... (0) | 2019.02.06 |
[Linux] How to move only files except directories (0) | 2019.02.06 |
Redirect를 위한 Apache 웹 서버의 .htaccess 설정 (0) | 2019.02.06 |