Trim off first 1000000 lines # No backup perl -i -ne 'print unless 1 ..1000000' server.log # With backup perl -i.bkp -ne 'print unless 1 ..1000000' server.log |
Thursday, 18 December 2008
Clear log file via inline edit
Posted by Ook at 04:58
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment