Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 70
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)