Unix Example: Extract Lines from Middle of a File

* Extract lines between 2000 and 3000 of error.log file and output to error.log.1:

sed -n '2000,3000p;3001q' error.log > error.log.1
This entry was posted in unix and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.