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

Aaron Konstam akonstam at sbcglobal.net
Thu Mar 25 20:57:05 UTC 2010


On Thu, 2010-03-25 at 12:43 -0430, Patrick O'Callaghan wrote: 
> On Thu, 2010-03-25 at 13:04 -0400, Kevin J. Cummings wrote:
> > > 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.
> > 
> > When I ran the command as "-size 1G", it returned all the files less
> > than 1GB in size (I'm not sure if /etc *has* any files greater than
> > 1GB!)  So, I agree, its either a bug in the documentation or in find.
> > Bugzilla it!  Let's hear from the developers.
> 
> Are you sure? In my case it returned only the zero-length files, same as
> what the OP reported. This is on F12, just in case.
> 
> poc
> 
That is how it works for me. zero length files are not returned.

--
=======================================================================
You will not be elected to public office this year.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net



More information about the users mailing list