You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
289 B
24 lines
289 B
#! /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
|
|
|
|
|