Hi. N is in 24 hour units (fractional parts discarded). So if the file was changed (or created) less than 24 hours ago, it's 0 (because it's less than one 24 hour period and there's no rounding up).
I suppose if you just wanted to run this everyday in cron for instance: find /some/dir -ctime -0 \! -type d -print | egrep -v '/ public_html/cache/|/public_html/uploads/' would give you files modified in the last 24 hours and ignore new/ changed files in the cache and uploads directories. I should have also mentioned that new files (not just changed ones) are included. However if a filename changes then it won't be on the list (unless you remove the "\! -type d") but you'll only see that the directory changed (and you won't actually know what happened). -Craig On 11/06/2009, at 10:10 AM, Sid Bachtiar wrote: > I still don't understand it, if -N is -2 ... it would be? > > On Thu, Jun 11, 2009 at 10:01 AM, Craig Anderson<[email protected] > > wrote: >> >> The -N is in 24 hour periods with fractional parts discarded. So - >> ctime -1 is files which were changed within the last 47 hours 59 >> seconds. --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
