Bash

· 리눅스
# -z로 arg1이 없음을 체크 cat test.sh #/bin/bash if [ -z "$1" ]; then echo Hello else echo World fi $ ./test.sh Hello $ ./test.sh 111 World
· 리눅스
test.txt의 맨 뒤에 내용을 추가한다. 에디터를 열지 않고, sh에서 작업 가능. script에서 추가할 때 쓰면 될 것. # cat >> 파일명 > test.txt EOF $ cat test.txt HELLO WORLD
orbhanis
'Bash' 태그의 글 목록