IF

흐름 제어 : if 분기 if의 사용 x=5 if [ $x = 5 ]; then echo "x eqauls S." else echo "x doesn not equal S." fi if commands; then commands [elif commands; then commands...] [else commands] fi test의 사용 if 명령어와 가장 흔하게 사용되는 명령어는 test이다. 다양한 검사와 비교 작업을 수행할 수 있는데 두 가지 형태로 사용된다. test expression [expression] # 더 많이 사용됨 파일 표현식 자주 사용되는 파일 표현식. 링크에서 퍼왔으며, 사실 더 많이있다.. https://www.oreilly.com/library/view/unix-text-pro..
깡냉쓰
'IF' 태그의 글 목록