[tpm] Fast(er) way of deleting X lines from start of a file
linux at alteeve.com
Wed Sep 30 08:39:14 PDT 2009
Thus far, I've opened a file, read it in, shifted/ignored the first X
number of line and then wrote out the resulting file. This works, but
strikes me as horribly inefficient. Doubly so when the file could be
larger than RAM.
So then, is there a more efficient/faster way of saying "Delete the
first X number of lines from file foo"?
More information about the toronto-pm