OS: AIX 7.1
I am working on a shell script which let user input some command and execute it, one of the commands is in this form:
compile appname
the appname only can be one of [ccms|asws], what's the right pattern to match it in case statement ?
here is my shell script:
while true
do
read cmd
case $cmd in
"compile(\s)(ccms)|(asws)") compile
;;
*) break
;;
esac
done
compile(){
...
}