From: Einar Jørgen Haraldseid Date: Mon, 14 Jan 2019 14:53:09 +0000 (+0100) Subject: Nye retter\! X-Git-Url: https://git.slaskete.net/einar-bin/commitdiff_plain/923533b96d6643e386aa2b917657fc8384977d69?hp=dfe3f8970cb60302eb77e51bdba5d7dc373ae58a Nye retter\! --- diff --git a/middag.sh b/middag.sh index dbb0e14..38ec5ae 100755 --- a/middag.sh +++ b/middag.sh @@ -6,13 +6,19 @@ Prep=( 'Grillet' 'Gratinert' 'Bakt' + 'Fritert' ) Meat=( 'laks' - 'biff' + 'indrefilet av svin' + 'indrefilet av storfe' 'kylling' + 'kalkun' 'grøt' + 'torsk' + 'kotelett' + 'løvbiff' ) Sides=( @@ -22,15 +28,34 @@ Sides=( '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 %= ${#Prep[@]} )) +(( PrepN %= $PrepCount )) MeatN=$RANDOM -(( MeatN %= ${#Meat[@]} )) +(( MeatN %= $MeatCount )) SideN=$RANDOM -(( SideN %= ${#Sides[@]} )) +(( SideN %= $SideCount )) echo "${Prep[PrepN]} ${Meat[MeatN]} med ${Sides[SideN]}"