ls -l | awk '{print $NF}' | awk 'substr($0, length($0)-9, length($0)) < "2012-08-20" {system("mv "$0" /old/")}'
This will move all files older than "2012-08-20" to the / old folder. Similarly, you can change "2012-08-20" to indicate the specific date you want. Note that the file suffix is assumed to be a date stamp, but the prefix can be any name.
If you just need to move files older than a certain day, I think rkyser answer is better for this.
source share