|
|
|
|
Configuration: Windows XP Internet Explorer 7.0
Salut,
J'ai rédigé ce code, mais j'ai pas pu tester. J'espère que ça marchera ;)
#!/usr/bin/sh
echo "Entrer la chaine :"
read chaine
if ! echo $chaine | egrep ^\([0-9],\)+[0-9]$ > /dev/null; then
echo "mauvais choix";
fi
Cdt Google is your friend |
Merci bcp :)
ça marche. |