On Mon, 8 Aug 2005 16:24:21 +0200
Christophe Gaubert <[EMAIL PROTECTED]> wrote:
> Le Lundi 8 Août 2005 15:16, Jean-Claude Garaud a écrit :
> > Je ne sais pas s'il y en a de meilleures : en tout cas très efficace
> > :)
>
> Eh bien, si, il y a mieux :) Sed n'est pas du tout utile, les capacités
> de bash suffisent :
>
> c="fref25dfrf63fdfr45"
> for n in $(echo ${c//[^0-9]/ })
> do
> echo $n
> done
>
>
> --
> Christophe Gaubert
> http://perso.wanadoo.fr/christophe.gaubert
> Mail posté depuis un système libre GNU/Linux
>
>
quid de ceci?
[EMAIL PROTECTED] ~]$ set -- ${c//[^0-9]/ }; echo $# nombres: $*
3 nombres: 25 63 45
bye
jipe
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________