[CentOS] find with -mtime and -print0 = inaccurate results

Sean Carolan scarolan at gmail.com
Thu Oct 25 16:41:51 EDT 2012


If I run this:

find /path/to/files/ -type f -mtime -2 -name *.xml.gz

I get the expected results, files with modify time less than two days old.

But, if I run it like this, with the print0 flag:

find /path/to/files/ -print0 -type f -mtime -2 -name *.xml.gz

I get older files included as well.  Anyone know why?


More information about the CentOS mailing list