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



On Sat, 2010-03-27 at 09:43 -0430, Patrick O'Callaghan wrote:
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


Ok, lets settle this. Do you know what you say to be true? Have you
tested it on files larger than 1G? I have no files that big so I can't
test it.
--
=======================================================================
I don't want to bore you, but there's nobody else around for me to bore.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx

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