[SunHELP] Re: Find Files Modified Today

sunhelp at sunhelp.org sunhelp at sunhelp.org
Thu May 17 12:54:24 CDT 2001


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