My question is so simple, but I could not find any solution yet. I need to find files with the date (string) repeated in their names. For example:
20190101_fl_20190101.nc
20190101_fl_20190104.nc
20190102_fl_20190102.nc
20190102_fl_20190104.nc
I need to find 20190101_fl_20190101.nc and 20190102_fl_20190102.nc.
I have tried
ls 20190[0-9][0-9][0-9]_fl_20190[0-9][0-9][0-9].nc
But, as expected, it finds all possible combinations.
Any help would be highly appreciated.