Unix/Linux Go Back    



delete first 100 lines from a file

Solaris




Kindly Note - This is a Single User Post by Forum Member matrixmadhan Regarding:
delete first 100 lines from a file.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 11-15-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 10 January 2017, 8:10 AM EST
Location: classification algos
Posts: 3,215
Thanks: 19
Thanked 31 Times in 28 Posts
if -i option is available in sed ( GNU sed )

use it for in-place modification


Code:
sed -i '1,100d' filename