Let's say there is file and named with every date, like…
log-2021-01-01
log-2021-01-02
log-2021-01-03
...
...
log-2021-12-31
For example: If we would like to find "fatal_error" during Jan,2021~Apr,2021, we could use following command:
#grep -E fatal_error log-2021-0[1-4]*
However, what if we want to find pattern during Sep,2021~Dec,2021? Could we achieve in one command?
We've tried a few different methods but doesn't work. Need master's advice, thanks.