Bonjour,
autre solution avec sed :
sed '1,/AAAAA/d' | sed '/BBBBB/,$d'
jeudi 21 Septembre 2006 12:40, jipe wrote/a écrit :
> On Thu, 21 Sep 2006 02:16:20 +0200
> Jean-Louis <[EMAIL PROTECTED]> wrote:
>
> > C'est bon, j'ai trouvé. Voici la solution complète:
> > awk '/AAAAA/,/BBBB/{print $N}' | head -n -1 | tail -n +2
> >
> > Bizarrement il faut mettre +2 et non +1.
> >
> > JL
> >
> >
>
> tu peux aussi ajouter une condition à la commande:
>
> awk '/AAAAA/,/BBBB/{if (! /AAAAA/ && ! /BBBB/) print $2}'
>
>
> bye
> jipe
>
--
Serge Noiraud
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________