Sean Carolan
2012-Oct-25 20:41 UTC
[CentOS] find with -mtime and -print0 = inaccurate results
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?
Stephen Harris
2012-Oct-25 20:51 UTC
[CentOS] find with -mtime and -print0 = inaccurate results
On Thu, Oct 25, 2012 at 03:41:51PM -0500, Sean Carolan wrote:> If I run this: > find /path/to/files/ -type f -mtime -2 -name *.xml.gz> find /path/to/files/ -print0 -type f -mtime -2 -name *.xml.gzOrder of operations find /path/to/files/ -type f -mtime -2 -name *.xml.gz -print0 -- rgds Stephen