how to list files between last 6 hours to 3 hours

Hi Frens,

I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time

i dont want my list to contain the latest files which are received in last 3 hours , likewise which are received before 6 hours, of the current time.

Any clues??

Thanks so much in advance

Hi,

This should work..

find dirname -type f -mmin -360 ! -mmin -180

Thanks
SHa

Thanks much, it should give the desired result but mmin does not work for me, do we have any other option?

use forum's 'Search' function for similar threads - search for 'newer'.
This is one of the threads you might find useful.
'man find'
'man touch'

Thanks so much , will try these options :slight_smile: