-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.sh
executable file
·31 lines (25 loc) · 743 Bytes
/
variables.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
#!/usr/bin/env bash
# The path to create and edit the file
path="/home/$(whoami)/"
# Days of the week in German and English
mon="Montag"
die="Dienstag"
mit="Mittwoch"
don="Donnerstag"
fre="Freitag"
sam="Samstag"
son="Sonntag"
mond="Monday"
tue="Tuesday"
wed="Wednesday"
thu="Thursday"
fri="Friday"
sat="Saturday"
sun="Sunday"
woche_array=($mon $die $mit $don $fre $sam $son)
week_array=($mond $tue $wed $thu $fri $sat $sun)
woche_array_string=("mon" "die" "mit" "don" "fre" "sam" "son")
week_array_string=("mond" "tue" "wed" "thu" "fri" "sat" "sun")
options=("create" "show" "help" "delete" "edit")
# Create an array that is options + woche_array name of variables as strings
options_to_check=("${options[@]}" "${week_array_string[@]}")