I need help to find files in a directory that are older than 2 hours.
Any help would be great.
Hi this is babu,
I am giving a command follwing,
touch -t [[CC]YY]MMDDhhmm[.SS] somefile
find . ! -newer somefile -print
This command will be displayed the files at the perticular time stamp.
bye,
babu:
I have a common script for finding it in two days but not two hours:
find /users -name '*.tmp' -mtime +2
Try to find something on the -mtime maybe you could change this param to be hour not day.
Take a look at the FAQ's.
My thought is in using perl, and then seeing if the last modification time is within 2 hours of now.