Command to grep long sized log files using date format “from” and “to”

grep -r ‘Jul 6*’ maillog > bklog

awk ‘$0>=from&&$0<=to’ from=”JulĀ  6 20:00:02″ to=”JulĀ  7 00:00:02″ bklog > bklog5

Advertisements
Published in: on July 7, 2011 at 10:44 am  Comments Off on Command to grep long sized log files using date format “from” and “to”