does anyone know why I'm getting different results here?
Code:
find . -mtime -2 -exec ls -lh '{}' \; | wc -l
7523
find . -mtime -2 -print | wc -l
332
... seems to me, they should be the same.
btw, the latter of the two is what I expect. What I'm going for is to find all files with an mtime of less than 2*24 hours (2 days).
If it means anything... in the same dir:
Code:
find . | wc -l
8132
...and for the record:
Code:
find -version
find (GNU findutils) 4.4.0
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0)
any ideas?