find /etc -size -1G return only empty files

Mike McCarty Mike.McCarty at sbcglobal.net
Thu Mar 25 19:30:39 UTC 2010


Bryn M. Reeves wrote:

[...]

> Different invocation. Your test and the OP used "-size -1G" (which
> _should_ report files less than 1G but apparently reports only 0-byte
> files). The reply above was "-size 1G" which _should_ match files that
> are exactly 1G in size but according to the above does what "-size -1G"
> is supposed to do..

The way I read the docu, it should return the names of all files
which use less than 1 unit (that is, which use 0 or less units).
That's consistent with what you describe. The "G" simply makes
the unit be bigger than without it.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!


More information about the users mailing list