0393. [|| &&] 성공여부 테스트하기 (sh csh)
IT2016. 2. 16. 12:28
comm1 || comm2 왼쪽 명령이 실패하면 오른쪽 명령을 실행하라 comm1 && comm2 comm1 이 성공하면 comm2 를 실행하라. 하지만 comm1 이 실패하면 아무것도 하지 않는다. |
'IT' 카테고리의 다른 글
0395. [svn_dump.sh] subversion incremental backup 후 FTP 전송 스크립트 (0) | 2016.02.16 |
---|---|
0394. [while shift] while과 shift 로 인자 다루기 (0) | 2016.02.16 |
0392. [? status] UNIX 프로세스 종료상태 확인 (sh csh) (0) | 2016.02.16 |
0391. [error] telnet: Unable to connect to remote host: Connection refused (0) | 2016.02.16 |
0390. [error] su: setuid: not owner (0) | 2016.02.16 |