Created
October 26, 2015 19:00
-
-
Save rzani/e4a25c8fe54dfe4d52cb to your computer and use it in GitHub Desktop.
Shell utilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selection= | |
until [ "$selection" = "0" ]; do | |
echo " | |
PROGRAM MENU | |
1 - Display free disk space | |
2 - Display free memory | |
0 - exit program | |
" | |
echo -n "Enter selection: " | |
read selection | |
echo "" | |
case $selection in | |
1 ) df -h ;; | |
2 ) free -h ;; | |
0 ) exit ;; | |
* ) echo "Please enter 1, 2, or 0" | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment