↧
Answer by Matthieu Moy for Would GREP work to filter a log file based on...
grep filters regular expressions. It is very good at filtering lines containing one particular keyword, but a date range is hard to specify using regular expressions. For example, to get errors between...
View ArticleAnswer by Stéphane Chazelas for Would GREP work to filter a log file based on...
awk is probably all you need here as it can do regexp matching, split lines into fields and do string comparisons (which works for date comparison as long as you use YYYY-MM-DD HH:MM:SS timestamps and...
View ArticleWould GREP work to filter a log file based on keywords, dates, timestamps? Or...
I am trying to filter a log file based on the following: date range of an error (yyyy-mm-dd) timestamp range of an error (01:00:00 - 00:00:00) keywords (previousFireTime, nextFireTime) I've been...
View Article