-
Notifications
You must be signed in to change notification settings - Fork 0
/
choice.sh
49 lines (36 loc) · 805 Bytes
/
choice.sh
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
# clear the screen
tput clear
# Move cursor to screen location X,Y (top left is 0,0)
tput cup 3 15
# Set a foreground colour using ANSI escape
tput setaf 3
echo "Data gathering script"
tput sgr0
tput cup 5 17
# Set reverse video mode
tput rev
echo "M A I N - M E N U"
tput sgr0
tput cup 7 15
echo "1. Download latest Wikidata dump"
tput cup 8 15
echo "2. Download latest Freebase dump"
tput cup 9 15
echo "3. Download latest DBpedia dump"
tput cup 10 15
echo "4. Exit"
# Set bold mode
tput bold
tput cup 12 15
read -p "Enter your choice [1-4]" choice
#choice=$?
case $choice in
1) echo "Wikidata dump gathering started";;
2) echo "Freebase dump gathering started";;
3) echo "DBpedia dump gathering started";;
4) echo "Exiting";;
esac
#tput clear
#tput sgr0
#tput rc