Check data and run script
I would like to write a script to do such thing , if a directory have file that the extension is today (yymmdd), then do a specific action , I will run a cron job to run this script .
oday is 2nd , if the directory have files which file name are abc.121102 and def.121102 , then echo the file name , so the output is abc , def
tomorrow is 3rd , if the directory have files which the file name are xxx.121103 and yyy.121103 , then echo the file name , so the output is xxx , yyy
can advise how to it ?