mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 11:42:20 -04:00
add things resources from the last 5 years over machines
This commit is contained in:
parent
ac9c955e0b
commit
b0a4e417ee
77 changed files with 2327 additions and 84 deletions
30
shell_scripts/menu.sh
Executable file
30
shell_scripts/menu.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
# Script to create simple menus and take action according to that selected
|
||||
# menu item
|
||||
#
|
||||
while :
|
||||
do
|
||||
clear
|
||||
echo "-------------------------------------"
|
||||
echo " Main Menu "
|
||||
echo "-------------------------------------"
|
||||
echo "[1] Show Todays date/time"
|
||||
echo "[2] Show files in current directory"
|
||||
echo "[3] Show calendar"
|
||||
echo "[4] Start editor to write letters"
|
||||
echo "[5] Exit/Stop"
|
||||
echo "======================="
|
||||
echo -n "Enter your menu choice [1-5]: "
|
||||
read yourch
|
||||
case $yourch in
|
||||
1) echo "Today is `date` , press a key. . ." ; read ;;
|
||||
2) echo "Files in `pwd`" ; ls -l ; echo "Press a key. . ." ; read ;;
|
||||
3) cal ; echo "Press a key. . ." ; read ;;
|
||||
4) vi ;;
|
||||
5) exit 0 ;;
|
||||
*) echo "Opps!!! Please select choice 1,2,3,4, or 5";
|
||||
echo "Press a key. . ." ; read ;;
|
||||
esac
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue