"output all but last N lines" command?

From: William Ballard (nospam_40811_at_alltel.net)
Date: 12/18/04

  • Next message: Gregory Seidman: "Re: Slickest way to do "joins"/lookups in text files"
    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
    

  • Next message: Gregory Seidman: "Re: Slickest way to do "joins"/lookups in text files"

    Relevant Pages

    • Re: OK, so Im board...
      ... wlel. ... be used to add validity to the ToE. ... Once again a point that was made and soared so high over your head that the ... Perhaps you should do yourself a favor and "unsubscribe" ...
      (talk.origins)
    • Re: Fw: The Order of Maltas new head
      ... The Order of Malta's new head ... and I've found a few new pathways that Leo isn't ... To unsubscribe from the list, ... No virus found in this incoming message. ...
      (soc.genealogy.medieval)
    • Re: Mounting a Dichro DG head to a Beseler CB-7?
      ... > adapter to mount the head to the CB-7. ... From just resting the head on the enlarger it seems ... If it had a longer cord I could just leave it next to the enlarger ... > but it's short enough that it looks like I'll need to mount it to the head. ...
      (rec.photo.darkroom)
    • Re: How to return an empty aggregate
      ... Is there a way to use stateless adapter or you have to ... essentially you want some Ada equivalent of the following pipe ... $ someprogram> somefile.log ... The presence of "head" filter changes nothing in the applicability of / ...
      (comp.lang.ada)
    • Re: OT - what do you use to carry your Digital SLR while cycling ?
      ... appropriate adapter to take a suitable head. ... That doesn't sound too bad - getting on for 6kg with a head, ... Carbon taps are about 2 quid a pop, ... If the change of stud size is from big to small, ...
      (uk.rec.cycling)