First page Back Continue Last page Graphics
Implementation of select example
Implementation of select example
PS3="Who’s Your favorite Simpson? "
select x in "Bart" Homer 'Quit now'; do
case $x in
Bart)
echo Eat my cow, man
;;
Homer)
echo "D'oh"
;;
*)
break # this choice exits loop
;;
esac
done