Remove x number of lines from beginning of file
smorrey at gmail.com
Thu Oct 25 20:53:27 MDT 2007
It could definitely be optimized.
Slurping the entire file, skipping x newlines and rewriting the file
in one swoop would probably be significantly faster.
However the point was to show a different approach than simply nicing
the existing process, or utilizing an existing utilty.
Just curious Dave, but what command did you use to compile? I used
the O3 flag and got a time that was slightly better than before on my
On 10/25/07, Dave Smith <dave at thesmithfam.org> wrote:
> Steve wrote:
> > Anyways back to the subject, I whipped up a little program that should
> > do the trick.
> If sed was bad, I guess I don't see how this is better because it uses
> the same approach, and it's slower in my testing.
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
More information about the PLUG