Files
Bash/Case.sh
T
2026-10-09 07:54:09 +02:00

16 lines
297 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Choix avec case
echo -n "Connaissez-vous Linux (Oui/Non/autre choix ?)"
read reponse
case $reponse in
O*|o*) echo "Tant mieux"
exit 0
;;
N*|n*) echo "Il n’est jamais trop tard !"
exit 1
;;
*) echo "Comment est-ce possible ?"
exit -1
;;
esac
exit 0