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

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

 



On Fri, 2010-03-26 at 15:58 -0500, Aaron Konstam wrote:
> On Fri, 2010-03-26 at 11:53 -0430, Patrick O'Callaghan wrote: 
> > On Fri, 2010-03-26 at 10:30 -0500, Aaron Konstam wrote:

[...]

> > > No, find -size 1G
> > > will do what you want.
> > 
> > Have you read the rest of this thread? Your interpretation of what the
> > OP wants is not what he says he wants, which in turn is not what "-size
> > -1G" actually does.
> > 
> > poc
> > 
> 
> I rfead the whole thread. And I agree that find -size -!G does not do
> what he wants but find -size 1G
> does. Try it and you will see.

I quote the OP's original message:

        find /etc -size -1G
        
        should return all files less than 1Giga byte in /etc, but return
        a
        list of empty file (size=0)
        
I think it's clear that he wants to find files of under 1Gb. That is not
what "find -size 1G" does. It gives a list of all files with non-zero
size, which is not the same thing.

poc

-- 
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