Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a file that is over 2gb that

Status
Not open for further replies.

yowza

Technical User
Nov 28, 2001
121
US
I have a file that is over 2gb that won't fit into the vi editor. Does anyone know how I could delete the first 8 lines of the file? Also, ocassionally I will need to add or delete a line in the middle of the file. I have been looking at sed & awk but haven't had much luck yet and I am running out of time.

Thanks,
yowza
 
tail +8 <file> > <file2>

will chop off the first 8 lines ...

adding a line in the middle ... thread822-489830
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top