Meta
Categories
Tag Archives: unix
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
* 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