I am having a log file which contains many months and I want to extract all the logs from one month.
The log file line starts like this
2018-05-31 12:30:00 INFO: 2018-06-18 12:31:00 INFO: 2018-07-32 12:36:00 INFO: .....
So I tried
grep -i "^2018\-06" input.csv >output.csv
But this only generates an empty file. Any help is appreciated.