Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 69
hp e3000
programming
and posix
posix shell flow of control
case word in
pattern1) command1 ;;
pattern2) command2 ;;
esac
execute the command of the first pattern matching word
for variable in word1 word2 ; do
command
done
for each word, set the variable to the word and
execute the command(s)