Re: find /etc -size -1G return only empty files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike McCarty wrote:
> Patrick O'Callaghan wrote:
>>      The number can be prefixed with a `+' or a `-'.  A plus sign
>>      indicates that the test should succeed if the file uses at least N
>>      units of storage (a common use of this test) and a minus sign
>>      indicates that the test should succeed if the file uses less than
>>      N units of storage.  There is no `=' prefix, because that's the
>>      default anyway.
>>
>> 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.
> 
> This looks perfectly straightforward to me, and it looks like
> the behavior conforms to the description. Less than 1 unit is
> 0 units. The test is performed on "units" not on "bytes", unless
> the unit happens to be the byte, which then requires "b" as the
> suffix, not "G".
> 
My man page indicates "c" and the unit for byte. "b" is for block, and "S" is 
for Stupid, which is my opinion of this implementation. In any case -1000000000c 
works as expected, all the other suffixes (suffices?) are file system block 
dependent. And if I read it write, the V7 UNIX sector size on the PDP-11.

-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux