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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux