Exp.No.6c – MENU DRIVEN PROGRAM
Coding
# Generate
UNIX commands with menu driven program echo " MENU "
echo
"1.List of files"
echo "2.Today's Date" echo "3.Process Status"
echo
"4.Logged in Users"
echo
"5.Display the current working Directory" echo "6.Quit"
echo -n "Enter your choice"
read ch
case "$ch"
in
1) ls -l;;
2) date;;
3) ps;;
4) who;;
5) pwd;;
6) exit;;
*) echo "Invalid Choice" exit;;
esac
No comments:
Post a Comment