Wednesday, September 2, 2015

Grep /var/log/messages by date without leading zeros

Grep /var/log/messages by date without leading zeros

 
date=`date --date="yesterday" +%b\ %e`
 
grep $date /var/log/messages 

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status