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

Patrick O'Callaghan pocallaghan at gmail.com
Thu Mar 25 17:17:15 UTC 2010


On Thu, 2010-03-25 at 11:38 -0500, Chris Adams wrote:
> Once upon a time, Patrick O'Callaghan <pocallaghan at gmail.com> said:
> > 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.
> 
> The man page has this at the top of the TESTS section:
> 
>        Numeric arguments can be specified as
> 
>        +n     for greater than n,
> 
>        -n     for less than n,
> 
>        n      for exactly n.
> 
> The bug in find appears to be specific to using "-1x" (where "x" is k,
> M, or G); only files of size 0 are found.  Using "-2x" gives the
> expected output.

OK, I was looking in the general area of the "-size" paragraph.

poc



More information about the users mailing list