Hello!
Must list "n" files from a given directory (exe: / export / home / test /), to recover part of the file names in a variable and then compare the variable with a specific date.
Eg
I have the file TEST-2012-09-18.LOG, just need to assign the value to a particular variable 09.18.2012 and subsequently compare this variable (date) with the current date, if the difference is more than 30 days, I delete the file.
I await return of you!!
hugs
Must list "n" files from a given directory (exe: / export / home / test /), to recover part of the file names in a variable and then compare the variable with a specific date.
Eg
I have the file TEST-2012-09-18.LOG, just need to assign the value to a particular variable 09.18.2012 and subsequently compare this variable (date) with the current date, if the difference is more than 30 days, I delete the file.
I await return of you!!
hugs