#!/bin/ksh # Example of select statement to provide a menu PS3="What fish would you like with your chips? " print "Use ^D to terminate" select fish in haddock cod plaice sea-bass do case $fish in haddock) print "That will be about 10 minutes, OK?" ;; cod) print "Large or small?"; break ;; plaice) print "Sorry, we are out of plaice" ;; sea-bass) print "Mediterrainean or Aegean?" ;; *) print Never heard of that - are you sure\? ;; esac done print "" print "Salt and vinegar?"