|
|
|
|
Salut,
Une façon de faire : $ echo "hxfvnn01.tri" | grep -o '[0-9][0-9]*' 01;-)) JP - Éleveur de pingouins - Faites un geste pour l'environnement, fermez vos fenêtres et adoptez un manchot. |
salut jipicy, merci pour la reponse
ça marche pas, il m'affiche que l'option "-o" est illégale |
Essaie avec "sed" alors : $ echo "hxfvnn01.tri" | sed 's/[^0-9]//g' 01;-)) JP - Éleveur de pingouins - Faites un geste pour l'environnement, fermez vos fenêtres et adoptez un manchot. |
ça marche nickel
merci jipicy à très bientot |
Résultats pour ksh: extraire un nombre à partir d'un chaine
Résultats pour ksh: extraire un nombre à partir d'un chaine
Résultats pour ksh: extraire un nombre à partir d'un chaine
Résultats pour ksh: extraire un nombre à partir d'un chaine
Résultats pour ksh: extraire un nombre à partir d'un chaine
Résultats pour ksh: extraire un nombre à partir d'un chaine