#从whole.log中提取2012-02-09
到2012-09-10
时间段文件内容
sed -n '/^2012-02-09/,/^2012-09-10/p' whole.log > part.log
#从whole.log中提取2012-02-09
到2012-09-10
时间段文件内容
sed -n '/^2012-02-09/,/^2012-09-10/p' whole.log > part.log
转载于:https://my.oschina.net/dlpinghailinfeng/blog/701506