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 .
for example 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 ? thanks. |
Quote:
TIA |
Quote:
http://www.linuxquestions.org/questi...lp-4175432449/ https://www.linuxquestions.org/quest...er-4175413626/ https://www.linuxquestions.org/quest...te-4175413358/ https://www.linuxquestions.org/quest...column-944377/ https://www.linuxquestions.org/quest...script-946113/ You've been pointed to shell scripting tutorials many, MANY times...you need to actually READ one. |
All times are GMT -5. The time now is 11:34 PM. |