head -lines 2000 file > foo

Will take the first 2000 lines and put them into file foo.

If you wanted the *last* 2000 lines:

tail -lines 2000 file > foo

On Fri, 19 Feb 1999, Justin Wilson wrote:

>     I have a large file (400+ megs)  and I do not want to vi the file and 
> cause the server load to shoot up.  What I do want to do is "cut off" the 1st
> 2,000 lines or so.  Can I do this without actually opening up the file?

_Deirdre  *  http://disclaimer.deirdre.org  *  http://www.deirdre.net
Q: Where do you want to go today? A: The 9th Floor

Reply via email to