I haven't worked with that big of a file before, this command will do it, i'm not sure if it will be any more effective.

tail +301 input > output

That will display every line starting at # 301 till the end, and you know the rest.
Jeff

Grant Kelly wrote:
Alright unix fans, who can answer this the best?

I have a text file, it's about 2.3 GB. I need to delete the first 300
lines, and I don't want to have to load the entire thing into an
editor.

I'm trying `sed '1,300d' inputfile > output file`  but it's taking a
long time (and space) to output everything to the new file.

There has got to be a better way, a way that can do this in-place...


Grant

_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

begin:vcard
fn:Jeff Shippen
n:Shippen;Jeff
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard

_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to