The -size -nnnnnX check works like this:

How many units sized one X each is the file using, 
a) less than nnnnn
or 
b) at least nnnnn

Therefore -size -1M or -size -1k or -size -1c all match only empty
files.

A 1025 byte sized file uses two 1K-units (it has to, there is only space
for 1024 bytes in a single 1K unit) and will therefore not match -size
-2k.

cu Andreas

** Changed in: findutils (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1385813

Title:
  find -size -Nk seems to be off by 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/1385813/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to