I have files with naming convention:
FILE_NAME=$APP_NAME"_"$PARAM_COUNTRY"_"$YYYY"_"$MM"_"$DD".info"
so in unix my file will be created like this:
run.sh_JP_2018_03_19.info
run.sh_JP_2018_03_20.info
run.sh_JP_2018_03_21.info
run.sh_AP_2018_03_21.info
run.sh_AP_2018_03_21.info
So if today's date is '2018_03_21' I would like to have a command which will delete the files older than this date having the string'JP' in it. This command should work even if I execute it after few days. How do I do it?