How can I move files based on date specifically for the case below:
1. crontab runs every hour
2. any file in directory 1 dated less than the current hour is moved to directory 2.
eg file1 time stamp 2:59
file2 time stamp 2:45
file3 time stamp 2:05
file4 time stamp 3:08
3. crontab runs at 3:15, so file1,2,3 are moved to directory2