Il semble que la syntaxe correcte soit :

tail -n 3 fichier
si tu veux les trois dernières lignes.

Equivalent me semble-t-il :

cat fichier | tail -n 3 -

Mais alors je ne vois pas l'intérêt ! pourquoi rediriger la
sortie de cat quand tail tout seul fait le boulot ...

Mais rappel Aldo je suis une vraie crasse en bash alors à
prendre avec des pincettes tout ça !

Pierre

_______________________________________________
Liste de diffusion CarrefourBLinuX 
    [email protected]
    http://lists.freearchive.org/mailman/listinfo/carrefourblinux
Pour s'inscrire par courriel : 
    'mailto:[EMAIL PROTECTED]'
Pour se retirer de la liste par courriel : 
    'mailto:[EMAIL PROTECTED]'

Archives : http://lists.freearchive.org/pipermail//carrefourblinux
Anciennes archives (Yahoogroupes) :
    http://fr.groups.yahoo.com/group/carrefourblinux/messages
Rechercher : http://lists.freearchive.org/cgi-bin/search.cgi

Signets : http://fr.groups.yahoo.com/group/carrefourblinux/links/
Fiches EDU : http://blinuxwiki.pbwiki.com/FichesEdu

Répondre à