Miscellany
public text v1 · immutable#!/bin/bash
while [ true ]
do
clear
echo "Please type in the corresponding letter."
echo "L. to list all files in the current directory."
echo "D. to display todays date and time."
echo "W. to see who is logged in."
echo "Q. to quit the program."
read menu
case "$menu" in
[lL])
ls -l
;;
[dD])
date
;;
[wW])
who
;;
[qQ])
break
;;
*)
echo "no such menu choice"
esac
echo "Please hit the enter key"
read
clear
done