[Linux-disciples] Deleting the first N lines of a file

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Feb 8 21:47:39 EST 2006


On Wed, Feb 08, 2006 at 08:55:49PM -0500, Stephen R Laniel wrote:
> head -n -N [filename] > end.txt
> mv end.txt [filename]

head -n -M [filename] | sponge [filename]

Why does it need to be so fast? Maybe you're asking the wrong question.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060208/b3f239d6/attachment.pgp


More information about the Linux-disciples mailing list