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

Published in: on July 7, 2011 at 10:44 am  Comments Off  
Follow

Get every new post delivered to your Inbox.