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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete 'n' record from a file

Status
Not open for further replies.
Oct 22, 2001
215
US
I have got a data file and I want to delete first 100 rec from it or read the 101 record.... What would be a quick way to do this? The file is huge... TIA
 
To read file line 101 try out

sed '101!d;101q' < input-file

Cheers,
ND [smile]

bigoldbulldog@hotmail.com
 
UUOC ;)

head -101 file | tail -1 vlad
+---------------------------+
|#include<disclaimer.h> |
+---------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top