I'm wondering how could I do the following greps:
- grep Apache log only for a range of dates, assume from 5/Nov/2010 to 5/Dec/2010
and
- grep Apache log starting from `15/Nov/2010 until the last log entry.
Thanks
feedback
|
|
I'm going to answer these in reverse order:
This doesn't require any sort of date parsing and can be accomplished easily with
This tells said to show lines (
This is almost the same, but instead of showing lines through the end of the file, you want to stop printing lines when you reach the second date. You could try something like this:
Note that in both of these examples I'm escaping the | |||||||||
feedback
|