forked from kcdon/Unix-Shell-Interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyhelp.sh
More file actions
48 lines (38 loc) · 730 Bytes
/
myhelp.sh
File metadata and controls
48 lines (38 loc) · 730 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
45
46
47
48
if [ $# -eq 0 ] ; then
clear
echo " UNIX HELP MAIN MENU"
echo -e "\n"
echo " 1 -- File and Directory management commands"
echo " 2 -- Text Processing commands"
echo " 3 -- System status commands"
echo " 4 -- Exit "
#echo -e "\n"
echo -e "\n"
echo -n " Enter your choice: "
read choice
if [[ "$choice" -eq 1 ]] ; then
bash 1novice.sh
fi
if [[ "$choice" -eq 2 ]] ; then
bash 2novice.sh
fi
if [[ "$choice" -eq 3 ]] ; then
bash 3novice.sh
fi
if [[ "$choice" -eq 4 ]] ; then
clear
exit 0
fi
fi
if [ "$1" = "help" ] ; then
bash myhelp.sh
fi
if [ "$1" = "file" ] ; then
bash expert1.sh
fi
if [ "$1" = "text" ] ; then
bash expert2.sh
fi
if [ "$1" = "status" ] ; then
bash expert3.sh
fi