files older than 12 hours

files older than 12 hours

 

  


All,

Is there any way I can find out the files older than 12 hours and delete
them. I tried mtime and atime But it is showing today's file also and I
want to delet all the files which are 12 hours old.

find . -name '*.req' -mtime +1 -exec ls -l {} * \;

find . -name '*.req' -mtime +1 -exec rm {} * \;

Regards,
Inder

Oracle LazyDBA home page