How to get the files lists

Hi All,

Need the help in getting the file list which are generated for the time period.

example if i want to get the list of file generated between 11 to 12 clock.

i used the find command search the files with -cmin flag with -60.

find /home/test/* -cmin -60 -type f -exec ls {} \;

that will lists the files which are created within the 60 minutes since the command run.

if i run the command at 12:15 it will lists the files generated between 11:15 to 12:15

Pl give some suggestion me to how to get the files generated between 11:00 to 12:00

Thanks in advance..

Madhu

The following script list files created today between 11h00 and 12h00 :

today=$(date +'%Y%m%d')
from=/tmp/today_11h00
to=/tmp/today_1200
touch -t ${today}1100 $from
touch -t ${today}1200 $to
find /home/test/ -newer $from ! -newer $to -type f -ls
rm $from $to

Jean-Pierre.

One solution: Like in maths...
look for files betwen 12:00 and 12:15 and substract content from the first list...