IT
0042. [select ]select 와 case 예제 (ksh)
띠앗머리
2015. 7. 1. 17:24
#!/bin/ksh COLUMNS=60 #한줄에 쓰여질 문자수 LINES=1 # select 조건변수 갯수를 몇줄로 보여줄지 결정 PS3="Please enter the terminal type : "
select choice in wyse50 vt200 vt100 sun do case $REPLY in 1) print "TERM=$choice" break;; 2|3) print "TERM=$choice" break;; 4) print "TERM=$choice" break;; *) print "$REPLY is not a volid choice Try again " 1>&2;; esac done
|