[bug #66258] No result found -size +10M -size -1G

Adam Dinwoodie <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #1, bug #66258 (group findutils):

This seems to be working as designed to me.

From the man page:

> The + and - prefixes signify greater than and less than, as usual; i.e., an
exact size of n units does not match. Bear in mind that the size is rounded up
to the next unit. Therefore -size -1M is not equivalent to -size -1048576c.
The former only matches empty files, the latter matches files from 0 to
1,048,575 bytes.

If you're searching for `-size +10M -size -1GB`, you're looking for files that
are simultaneously at least 11MB and empty, so there are no files that match.

Also note that your previous search doesn't list any files between 1GB and
2GB; a file that's 1,500,000,000 bytes long wouldn't get listed.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66258>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZxomjAAKCRCqLAuaBUf3
TuncAQDiliyQImQM+Wc2GcosvAJyiFTNaXPIxjMl699x6nYYiAEAqOmSt1ja3VfI
SN/SorLEeDp4MgxSJCIxQQTNeK5QjAg=
=NRie
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.