[SunHELP] Re: Find Files Modified Today

Will Mc Donald sunhelp at sunhelp.org
Wed May 16 13:37:08 CDT 2001


I think...

-mtime -1 

... should do the job. 

Will.

----- Original Message ----- 
From: <ymui at royalsunalliance.ca>
To: <sunhelp at sunhelp.org>
Sent: 17 May 2001 18:54
Subject: [SunHELP] Re: Find Files Modified Today


> 
> Hello Managers,
> 
> I run a find command to copy files modified today only from dir1 to dir2:
> 
>   find <dir1>/*.log.* -mtime 0 -exec cp -p {} <dir2> \;
> 
> 'Unfortunately, -mtime 0' gives me today's and yesterday's files.
> 
> Does anyone know how to just extract files that are modified today ?
> 
> Thanks, Yingha Mui.
> 




More information about the SunHELP mailing list