Finding Large Files

Michael Meissner meissner at osf.org
Sat Oct 13 08:28:02 AEST 1990


In article <1990Oct12.125125.15538 at kodak.kodak.com>
lrul00 at dixel.Kodak.COM (Richard C. Dempsey) writes:

| The following three lines are taken from the man page for find(1) on SunOS 4.1,
| and are the entire discussion about the size qualifier.  My interpretation is
| that the + syntax doesn't work on SunOS, at least.  I wouldn't care to generalize
| to other flavors of Unix...
| 
|      -size n        True if the file is n blocks long (512  bytes
|                     per  block).   If  n  is followed by a c, the
|                     size is in characters.

I would venture to say, you are not reading the entire documentation.
Usually up at the TOP of the documentation is verbage of the form:

     DESCRIPTION
          The command find recursively descends the directory
          hierarchy for each pathname in the pathname-list (that is,
          one or more pathnames) seeking files that match a boolean
          expression written in the primaries given below.  In the
          descriptions, the argument n is used as a decimal integer
          where +n means more than n, -n means less than n , and n
          means exactly n.

This is done, so that same paragraph does not have to be mentioned for
every argument that takes a numeric prefix.

If for some reason Sun's find does not support +/-n, the GNU find
certainly does.  I seem to recall that the SunOs 3.5 find supported
the +/- syntax.

--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Do apple growers tell their kids money doesn't grow on bushes?



More information about the Comp.unix.questions mailing list