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

2012-10-25 Thread Sean Carolan
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.

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

2012-10-25 Thread Stephen Harris
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.gz Order of operations find /path/to/files/ -type f -mtime -2 -name *.xml.gz -print0 -- rgds

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

2012-10-25 Thread Sean Carolan
Order of operations find /path/to/files/ -type f -mtime -2 -name *.xml.gz -print0 Thanks! ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos