Monday, 16 January 2012

remove lines in a file in Linux

sed '1,10d' server.log
command to remove lines between the line numbers 1 and 10..

http://en.kioskea.net/faq/1451-sed-delete-one-or-more-lines-from-a-file

No comments:

Post a Comment