Patch to find(1) to find large files.

David Sherman dave at lsuc.UUCP
Fri Jun 14 23:37:59 AEST 1985


In article <1315 at hammer.UUCP> dce at hammer.UUCP (David Elliott) writes:
||In article <663 at lsuc.UUCP> dave at lsuc.UUCP (David Sherman) writes:
||>Foo, grumble and feh! find(1) already has a "-size" option.
||>If you want to compare size against another file, it's
||>trivial to write a one-line awk script which feeds the right
||>information to find(1).
||>
||>Dave Sherman
||Put your money where your mouth is, Dave. The above note would
||imply that you can write an awk script that would generate a
||find command that looks something like this:
||
||	find dir \( -size n -o -size n+1 -o -size n+2 ... \)

No, I don't need an awk script for that, I type
	find dir -size +n ...

The awk script is to compare size against another file - for
that you'd run ls and use awk to extract the size to compare against.

Dave Sherman
-- 
{  ihnp4!utzoo  pesnta  utcs  hcr  decvax!utcsri  }  !lsuc!dave



More information about the Comp.unix.wizards mailing list