I have many files one of my scripts generate daily. The file name structure resembles:
capacity_data_2012-12-02.txt , capacity_data_2012-12-03.txt and so on...
I want to create a script which would check for the last month of data. For example today is capacity_data_2012-12-28.txt. I'd create a list of the files for the last 30 days. Any files more than 30 days old (not in my list) would then be moved to another directory.
Any direction would be helpful.