Here is the small reminder about the syntax of the “case” command and the usage of the pattern lists.
#!/bin/ksh print -n "Please enter the line: " read line case "$line" in ?(dog|cat) ) print "zero or one occurrence of any pattern" ;; *(low|high) ) print "zero or more occurrences of any pattern" ;; @(duncan|methos) […]