1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
#! /usr/bin/bash |
|||
|
|||
|
|||
function ampel() { |
|||
case ${1} in |
|||
1) |
|||
echo "Ampelphase rot" |
|||
;; |
|||
2) |
|||
echo "Ampelphase rot/gelb" |
|||
;; |
|||
3) |
|||
echo "Ampelphase grün" |
|||
;; |
|||
4) |
|||
echo "Ampelphase gelb" |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
for i in 1 2 3 4; do |
|||
ampel "${i}" |
|||
done |
|||
|
Loading…
Reference in new issue