Le lundi 11 décembre 2006 21:05, Christophe Gaubert a écrit :
> jipe a écrit :
> > sed '0,/foo/ s//bar/' a.txt
>
> Super ! (enfin, je suppose, je ne peux pas tester là maintenant
> (l'explication dans mes headers :()
>
> Y a plus qu'à comprendre pourquoi ça marche ! "info sed" à la
> rescousse !
0,addr2
Start out in "matched first address" state, until
addr2 is
found. This is similar to 1,addr2, except that if addr2
matches
the very first line of input the 0,addr2 form will be at
the end
of its range, whereas the 1,addr2 form will still be
at the
beginning of its range.
????
--
André Salaün
=========================================
Vous souhaitez acquerir votre pack ou des services Mandriva?
Rendez-vous sur "http://store.mandriva.com".
Rejoignez le club Mandriva : http://club.mandriva.com
=========================================