CTB_KT_OllyotLvos_20081204_164352_200811.txt
CTB_KT_LN_utahfwd_20081204_164352_200811.txt
CTB_KT_LN_utahfwd_Summ_20081204_164352_200811.txt
CTB_KT_PML_astdt_prFr_20081204_210153_200811.txt
CTB_KT_PML_astdt_prOt_20081204_210153_200811.txt
CTB_KT_PML_astdt_Nopr_20081204_210153_200811.txt
CTB_KT_OllyotLvos_20090111_064702_200812.txt
CTB_KT_LN_utahfwd_20090111_064702_200812.txt
CTB_KT_LN_utahfwd_Summ_20090111_064702_200812.txt
CTB_KT_PML_astdt_prFr_20090112_105344_200812.txt
CTB_KT_PML_astdt_prOt_20090112_105344_200812.txt
CTB_KT_PML_astdt_Nopr_20090112_105344_200812.txt
CTB_KT_OllyotLvos_20090205_145545_200901.txt
CTB_KT_LN_utahfwd_20090205_145545_200901.txt
CTB_KT_LN_utahfwd_Summ_20090205_145545_200901.txt
CTB_KT_PML_astdt_prFr_20090206_010203_200901.txt
CTB_KT_PML_astdt_prOt_20090206_010203_200901.txt
CTB_KT_PML_astdt_Nopr_20090206_010203_200901.txt
This is a set of files in test directory.
format of filename: string_yyyymmdd_hhmmss_previousyearmonth.txt. The yyyymmdd has to be used.
The requirement is get all the files which arrived in a given quarter.So if the quarter is 3 then all files which have arrived in Jan Feb Mar.The files date has to be taken from the file nameSo If I run this for 1st quarter then I should get these files out of the above set. the quarter can be calculated for a field $d which is the last day of the quarter.
CTB_KT_OllyotLvos_20090111_064702_200812.txt
CTB_KT_LN_utahfwd_20090111_064702_200812.txt
CTB_KT_LN_utahfwd_Summ_20090111_064702_200812.txt
CTB_KT_PML_astdt_prFr_20090112_105344_200812.txt
CTB_KT_PML_astdt_prOt_20090112_105344_200812.txt
CTB_KT_PML_astdt_Nopr_20090112_105344_200812.txt
CTB_KT_OllyotLvos_20090205_145545_200901.txt
CTB_KT_LN_utahfwd_20090205_145545_200901.txt
CTB_KT_LN_utahfwd_Summ_20090205_145545_200901.txt
CTB_KT_PML_astdt_prFr_20090206_010203_200901.txt
CTB_KT_PML_astdt_prOt_20090206_010203_200901.txt
CTB_KT_PML_astdt_Nopr_20090206_010203_200901.txt