I have log files in this pattern -
/mnt/internal-app/logs/internal-app.log_2019-08-20.log.gz
/mnt/internal-app/logs/internal-app.log_2019-08-21.log.gz
..
..
/mnt/internal-app/logs/internal-app.log_2019-08-25.log.gz
..
I would like to get the occurrences of certain text in the files from a certain date range - e.g. 20 to 21.
While following was working for me, to get occurrences of files in the entire range of 20s -
zgrep "search text" /mnt/internal-app/logs/internal-app.log_2019-08-23*
Trying to get only in the range of 20 to 21, I tried the solution given in
I read https://stackoverflow.com/a/17000211/351903
To make basic regex working, I tried the following, but it does not give me any results -
find . -regex "/mnt/internal-app/logs/internal-app.log_2019-08-23.*" -exec grep 'search text' {} +