38ec5aed2024fb274c6dce0d8b99742449d72c0a
[einar-bin] / middag.sh
1 #!/bin/bash
2
3 Prep=(
4 'Kokt'
5 'Stekt'
6 'Grillet'
7 'Gratinert'
8 'Bakt'
9 'Fritert'
10 )
11
12 Meat=(
13 'laks'
14 'indrefilet av svin'
15 'indrefilet av storfe'
16 'kylling'
17 'kalkun'
18 'grøt'
19 'torsk'
20 'kotelett'
21 'løvbiff'
22 )
23
24 Sides=(
25 'poteter'
26 'ris'
27 'wokgrønsaker'
28 'kokte grønsaker'
29 'fries'
30 'salat'
31 'couscous'
32 'søtpotetfries'
33 'risotto'
34 'potetmos'
35 )
36
37 PrepCount=0
38 while [ "x${Prep[PrepCount]}" != "x" ]; do
39 ((PrepCount++))
40 done
41
42 MeatCount=0
43 while [ "x${Meat[MeatCount]}" != "x" ]; do
44 ((MeatCount++))
45 done
46
47 SideCount=0
48 while [ "x${Sides[SideCount]}" != "x" ]; do
49 ((SideCount++))
50 done
51
52 PrepN=$RANDOM
53 (( PrepN %= $PrepCount ))
54
55 MeatN=$RANDOM
56 (( MeatN %= $MeatCount ))
57
58 SideN=$RANDOM
59 (( SideN %= $SideCount ))
60
61 echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"