I have a folder who have files names according to date for one month i.e. AP_20140101.gz, AP_20140102.gz, ... for each day. Here 2014 is year, 01 is month and 01 is date (AP_YYYYMMDD.gz is general format )
For selecting files for date 10 to 19 I can do this :
ls | grep *2014011*
But I am unable to grep from 15 to 31. Any suggestions?