IT
0107. here 문서와 case 코맨트로 메뉴 생성
띠앗머리
2015. 7. 7. 12:35
#!/bin/sh echo "Select a terminal type:" cat << ENDIT 1)vt120 2)wyse50 3)sun ENDIT
read choice case "$choice" in 1) TERM=vt120 export TERM ;; 2) TERM=wyse50 export TERM ;; 3) TERM=sun export TERM ;; esac echo "TERM is $TERM" |