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.
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
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
3 matches
Mail list logo