[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #12162] Enhancement req: finding files less than 2Gb in size [needs
[bug #12162] Enhancement req: finding files less than 2Gb in size [needs community feedback]
Thu, 05 Aug 2010 10:28:32 +0000
Mozilla/5.0 (X11; U; Linux i686; de; rv:22.214.171.124) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8
Follow-up Comment #21, bug #12162 (project findutils):
I currently stumbled over the "feature", that filesizes are obviously rounded
up before comparing.
So, I wanted to find all files smaller than 1MB and I - naivly - assumed that
find . -type f -size -1M
would do the job, but instead of returning me every file less than 1MB, it
gave me all files with exactly 0Byte back.
Apparently, -1MB means "less than 1MB" which means 0MB and everything rounded
up which is >0Byte is 1MB, so there was no hit at all.
I thought, this would be a bug but surprisingly the community is aware of it
and hasn't done something to fix it (the last 25yrs?) - so it has to be a
Wouldn't it be possible to fix this behaviour?
I realized, this thread is 5 years old and I can't believe this topic is sooo
difficult that there is absolutely no agreement possible ;-)
I agree with Peter Splichal, who suggested "--1MB" for disabling rounding up
Reply to this item at:
Nachricht geschickt von/durch Savannah
|[Prev in Thread]
||[Next in Thread]|
- [bug #12162] Enhancement req: finding files less than 2Gb in size [needs community feedback],
Thomas P <=