git.slaskete.net
/
einar-bin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of ssh://wowbagger.slaskete.net/srv/git/einar-bin
[einar-bin]
/
middag.sh
1
#!/bin/bash
2
3
Prep
=(
4
'Kokt'
5
'Stekt'
6
'Grillet'
7
'Gratinert'
8
'Bakt'
9
)
10
11
Meat
=(
12
'laks'
13
'biff'
14
'kylling'
15
'grøt'
16
)
17
18
Sides
=(
19
'poteter'
20
'ris'
21
'wokgrønsaker'
22
'kokte grønsaker'
23
'fries'
24
'salat'
25
)
26
27
PrepN
=
$RANDOM
28
((
PrepN
%=
${#Prep[@]}
))
29
30
MeatN
=
$RANDOM
31
((
MeatN
%=
${#Meat[@]}
))
32
33
SideN
=
$RANDOM
34
((
SideN
%=
${#Sides[@]}
))
35
36
echo
"
${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}
"