> -----Original Message-----
> From: Yann Autissier [mailto:[EMAIL PROTECTED]
> Sent: jeudi 11 mars 2004 12:52
> To: Ledent Marc
> Subject: Re: pobl�me r�cup�ration d'une partie nom de fichier
>
>
>
> >C'est tipiquement li� � la syntaxe absconce de Unix. Tu peux
> trouver la
> >signification dans la man page sur Bash (� lire, �a en vaut
> la peine).
> >
> >
> Effectivement. Je suis d�j� pass� par l�, mais je n'avais pas bien
> compris ce type d'expansion.
> Maintenant que j'ai compris, �a a l'air sur-puissant.
> Je pense revoir qqs uns de mes scripts, je vais pouvoir
> rogner pas mal
> de code avec cette astuce.
Un avantage de cette m�thode par rapport �:
a=`echo $a | sed 's/x/y/'`
ou
a=`echo $a | cut -d'.' -f2 's/x/y/'`
est qu'elle ne cr�e pas de sous process et est donc *beaucoup* plus rapide (la
m�thode ci-dessus cr�e deux process). Tr�s avantageux lors d'un grand nombre de
substitutions.
>
> Merci beaucoup !
Mais de rien!
>
> Linux's only pieces of excellence ;)
>
>
> Yann
>
-----------------------------------------
Visit our website! http://www.nbb.be
"LEGAL DISCLAIMER: The content of this e-mail message should not be constructed
as binding for the National Bank of Belgium (NBB) unless otherwise and
previously stated.
Besides, the opinions expressed in this message are solely those of the author
and do not necessarily represent those of the NBB, which is particularly the
case if the content of the present message, or part of it, is of a private
nature or does not come whithin the professional scope of the author."