All pastes #1700511 Raw Edit

Miscellany

public text v1 · immutable
#1700511 ·published 2009-12-03 18:20 UTC
rendered paste body
#!/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