Parse Log Files with sed
When parsing log files sed is not the go-to tool for most techs, but it offers a pretty neat feature: the ability to easily search a log file for a specific date/time range. Pattern Matching sed -n ‘/Dec 30 13:00/p’ /var/log/messages Date Range Matching sed -n ‘/Dec 30 13:00/,/Dec 30 14:00/p’ /var/log/messages Change Delimiters If … [Read more…]