Add SelectItem.sh
This commit is contained in:
1 parent
26bf4b3be9
commit
cff9d88740
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#! /usr/bin/bash
|
||||||
|
PS3="Votre choix : "
|
||||||
|
select item in "- Choix 1" "- Choix 2" "- Fin"
|
||||||
|
do
|
||||||
|
echo -e "\n Vous avez choisi l'item $REPLY: $item"
|
||||||
|
case $REPLY in
|
||||||
|
1)
|
||||||
|
echo -e "\n Premier choix"
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
echo -e "\n Deuxième choix"
|
||||||
|
;;
|
||||||
|
3) echo -e "\n Au revoir"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*) echo -e "\n Saisie incorrecte"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
Reference in new issue
Block a user