„teil24/familyif.sh“ hinzufügen

Version mit if
This commit is contained in:
2025-06-17 05:16:31 +00:00
parent 81a7c96f7f
commit c3f9740332

9
teil24/familyif.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/bash
if [[ "$1" == "Homer" || "$1" == "Marge" || "$1" == "Bart" || "$1" == "Lisa" ]]; then
echo "Familie Simpson"
elif [[ "$1" == "Ned" || "$1" == "Maude" || "$1" == "Todd" || "$1" == "Rod" ]]; then
echo "Familie Flanders"
elif [[ "$1" == "Clancy" || "$1" == "Sarah" || "$1" == "Ralph" ]]; then
echo "Familie Wiggum"
fi