Re: "output all but last N lines" command?
From: Adam Aube (aaube01_at_baker.edu)
Date: 12/18/04
- Previous message: bmetcalf_at_nortelnetworks.com: "Re: xv"
- In reply to: William Ballard: ""output all but last N lines" command?"
- Next in thread: William Ballard: "Re: "output all but last N lines" command?"
- Reply: William Ballard: "Re: "output all but last N lines" command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Fri, 17 Dec 2004 20:51:46 -0500
William Ballard wrote:
> 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."
Perhaps you missed this from the head man page:
-n, --lines=[-]N
print the first N lines instead of the first 10; with the lead-
ing `-', print all but the last N lines of each file
Adam
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: bmetcalf_at_nortelnetworks.com: "Re: xv"
- In reply to: William Ballard: ""output all but last N lines" command?"
- Next in thread: William Ballard: "Re: "output all but last N lines" command?"
- Reply: William Ballard: "Re: "output all but last N lines" command?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|