git.slaskete.net
/
einar-bin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nye retter\!
[einar-bin]
/
middag.sh
diff --git
a/middag.sh
b/middag.sh
index dbb0e14b15715a914e5cea058db617c33187a9d8..38ec5aed2024fb274c6dce0d8b99742449d72c0a 100755
(executable)
--- a/
middag.sh
+++ b/
middag.sh
@@
-6,13
+6,19
@@
Prep=(
'Grillet'
'Gratinert'
'Bakt'
'Grillet'
'Gratinert'
'Bakt'
+ 'Fritert'
)
Meat=(
'laks'
)
Meat=(
'laks'
- 'biff'
+ 'indrefilet av svin'
+ 'indrefilet av storfe'
'kylling'
'kylling'
+ 'kalkun'
'grøt'
'grøt'
+ 'torsk'
+ 'kotelett'
+ 'løvbiff'
)
Sides=(
)
Sides=(
@@
-22,15
+28,34
@@
Sides=(
'kokte grønsaker'
'fries'
'salat'
'kokte grønsaker'
'fries'
'salat'
+ 'couscous'
+ 'søtpotetfries'
+ 'risotto'
+ 'potetmos'
)
)
+PrepCount=0
+while [ "x${Prep[PrepCount]}" != "x" ]; do
+ ((PrepCount++))
+done
+
+MeatCount=0
+while [ "x${Meat[MeatCount]}" != "x" ]; do
+ ((MeatCount++))
+done
+
+SideCount=0
+while [ "x${Sides[SideCount]}" != "x" ]; do
+ ((SideCount++))
+done
+
PrepN=$RANDOM
PrepN=$RANDOM
-(( PrepN %= $
{#Prep[@]}
))
+(( PrepN %= $
PrepCount
))
MeatN=$RANDOM
MeatN=$RANDOM
-(( MeatN %= $
{#Meat[@]}
))
+(( MeatN %= $
MeatCount
))
SideN=$RANDOM
SideN=$RANDOM
-(( SideN %= $
{#Sides[@]}
))
+(( SideN %= $
SideCount
))
echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"
echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"