Dateien des bash Tutorioals auf raspithek.de
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.
 
 
 

19 lines
388 B

#! /usr/bin/bash
#Datei: teil23/family_case.sh
case ${1} in
'Homer'|'Marge'|'Bart'|'Lisa') # Familie Simpson
echo "Familie Simpson"
;;
'Ned'|'Maude'|'Todd'|'Rod') # Familie Flanders
echo "Familie Flanders"
;;
'Clancy'|'Sarah'|'Ralph') # Familie Wiggum
echo "Familie Wiggum"
;;
*) # default
echo "unbekannte Familie"
;;
esac