Le Lundi 8 Août 2005 14:18, Christophe Gaubert a écrit : > ce qui répond à ta > question si tu sais qu'il y a un seul nombre dans ta chaîne) :
Et une solution (peut-être pas la meilleure) pour extraire plusieurs nombres : c="fref25dfrf63fdfr45" echo "$c" | sed -e 's/[^0-9]/ /g' A utiliser par exemple, comme ça : for n in $(echo $c | sed -e 's/[^0-9]/ /g') do echo $n done -- Christophe Gaubert http://perso.wanadoo.fr/christophe.gaubert Mail posté depuis un système libre GNU/Linux
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
