"output all but last N lines" command?
From: William Ballard (nospam_40811_at_alltel.net)
Date: 12/18/04
- Previous message: William Ballard: "Slickest way to do "joins"/lookups in text files"
- Next in thread: William Ballard: "Re: "output all but last N lines" command?"
- Maybe reply: William Ballard: "Re: "output all but last N lines" command?"
- Reply: Adam Aube: "Re: "output all but last N lines" command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Dec 2004 20:44:52 -0500 To: debian-user@lists.debian.org
You can specify "tail -n+5" to output "all but the first 5 lines".
But "head" has no such option to output "all but the last N lines."
I could use "wc" to count the lines first, but that's less efficient
than a simple adapter that buffers at least N lines before outputing.
Is there a tool for me?
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: William Ballard: "Slickest way to do "joins"/lookups in text files"
- Next in thread: William Ballard: "Re: "output all but last N lines" command?"
- Maybe reply: William Ballard: "Re: "output all but last N lines" command?"
- Reply: Adam Aube: "Re: "output all but last N lines" command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|