7.10.2014

How to get part of log

Filed under: bash — nax @ 15:01

Very nice and useful command to dump just small part of large log file:

sed -n '/2014-09-30_16:00/,/2014-09-30_16:17/p' managed2.out >> failed_case.log

As first pattern you can specify anything where you want to begin dump (but usually it is a timestamp) and second where to end. Easy and effective…

Comments are closed.

Powered by WordPress