[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #12162] Enhancement req: finding files less than 2Gb in size [needs
From: |
Thomas P |
Subject: |
[bug #12162] Enhancement req: finding files less than 2Gb in size [needs community feedback] |
Date: |
Thu, 05 Aug 2010 10:28:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8 |
Follow-up Comment #21, bug #12162 (project findutils):
Hello all,
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
a
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
feature.
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
...
Best Regards,
Xeo
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?12162>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #12162] Enhancement req: finding files less than 2Gb in size [needs community feedback],
Thomas P <=