for ELEMENT in 'cat /etc/motd' do
echo $ELEMENT
done
cat /etc/motd | while read LINE do echo $LINE done
while : do echo $PS1 read CMD case $CMD in "") break;; esac done
read CMD while [ "$CMD" != ""] do case $CMD in user-cmd) do_it;; esac echo $PS1 read CMD done
trap "echo trapping; kill $$" 2 3 15
exit eof character (usually control -d) kill -9 0 kill -9 $$