-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.sh
More file actions
44 lines (40 loc) · 865 Bytes
/
menu.sh
File metadata and controls
44 lines (40 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
```sh
import system
use system
#!/bin/bash
while true; do
echo "Main Menu"
echo "0. Menu (Main)"
echo "1. option goto"
echo "2. option todo"
echo "3. option route"
echo "4. back file"
echo " exit"
echo -n "Enter your choice (0-4 or exit): "
read choice
case $choice in
0)
echo "You selected: Menu (Main)"
;;
1)
echo "You selected: option goto"
;;
2)
echo "You selected: option todo"
;;
3)
echo "You selected: option route"
;;
4)
echo "You selected: back file"
;;
exit)
echo "Exiting. Goodbye!"
break
;;
*)
echo "Invalid option. Please choose 0-4 or 'exit'."
;;
esac
echo
done