[wplug] find question

Eric C. Cooper ecc at cmu.edu
Thu Oct 30 18:47:01 EST 2003


On Thu, Oct 30, 2003 at 06:04:57PM -0500, John Harrold wrote:
> is there a way to use find to get all of the files which are less than a
> certain size?

Sure: read the TESTS section of the find man page, and note how
numeric args can be prefixed with + or - to specify greater than or
less than.

So "find -size -8k"

would find all files beneath the current directory that are less than
8 Kbytes in size.


-- 
Eric C. Cooper          e c c @ c m u . e d u



More information about the wplug mailing list