find /etc -size -1G return only empty files
Bryn M. Reeves
bmr at redhat.com
Thu Mar 25 17:20:47 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/25/2010 05:13 PM, Patrick O'Callaghan wrote:
> On Thu, 2010-03-25 at 13:04 -0400, Kevin J. Cummings wrote:
>>> Note that this clarification is not present in the man page find(1).
>> So
>>> it's either a bug in find or a bug in the documentation.
>>
>> When I ran the command as "-size 1G", it returned all the files less
>> than 1GB in size (I'm not sure if /etc *has* any files greater than
>> 1GB!) So, I agree, its either a bug in the documentation or in find.
>> Bugzilla it! Let's hear from the developers.
>
> Are you sure? In my case it returned only the zero-length files, same as
> what the OP reported. This is on F12, just in case.
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..
I seem to see behaviour on f12 consistent with both of these reports
(-1G gives 0-byte files, 1G gives <1G files).
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkurm28ACgkQ6YSQoMYUY95oIwCeMt8AAGuT90/HBQciditoyiUz
91oAnihBvhiLPxtMiKwWCe8XquQtgJ2D
=zayJ
-----END PGP SIGNATURE-----
More information about the users
mailing list