-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctrl.sh
More file actions
executable file
·50 lines (47 loc) · 787 Bytes
/
Copy pathctrl.sh
File metadata and controls
executable file
·50 lines (47 loc) · 787 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
49
#!/bin/bash
i=3
while((i <= 5))
do
echo $i
let i++
done
echo "ctrl + D to withdrawn"
:<<EOF
while read name
do
echo -n "tap out your favorite website name: "
echo "what the fuck is $name"
done
EOF
until [ ! $i -lt 10 ]
do
echo "i is $i"
let i++
done
echo "----------thsi is a case block-----------"
echo -n "tap out a number: "
read num
case $num in
1) echo "that's 1"
;;
2) echo "that's 2"
;;
3) echo "that's 3"
;;
*) echo "what the fuck have you just tapped out"
;;
esac
echo "-------this is another case block----------"
while :
do
echo -n "tap out a number that between 1 to 5: "
read num
case $num in
1|2|3|4|5) echo "the number you have tapped out is $num"
;;
*) echo "douch bag you didn't get the right digit!"
# break
continue
;;
esac
done