On mar, 2001-09-18 at 17:34, Clocard wrote:

y a aussi la commande cut


soit fichier.txt

1 11 111 1111 11111
2 22 222 2222 22222
3 33 333 3333 33333
4 44 444 4444 44444
5 55 555 5555 55555

imaginons que tu veux recuperer 3333

cat fichier.txt | tail -3 | head -1 | cut -f 4 -d " "

en gros -f 4eme_occurence -d separr�e par un espace


-- 
Laurent Culioli    :: <[EMAIL PROTECTED]>
MandrakeSoft Paris :: http://www.mandrakesoft.com


Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à