I need to write a script that will compress files inside several directories that are older than 30 days.
The problem is the time stamp is wrong on the directories and the files and the correct date is actually in the name of the directory/file e.g. file070504, so the script will have to extract this, convert this to date format, add 30 days to it and if it was to equal todays date then it would execute a compress command on it.
Can anyone help? quite lost
