Public feed #1700511

Miscellany

public text v1 · immutable
Raw Edit
·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