thomas@uppsala.telesoft.se (Thomas Tornblom) (10/10/90)
In article <2141@megadon.UUCP> kevinc%tekig5.pen.tek.com (Kevin E Cosgrove) writes:
Does anyone know how to find files of a certain size or larger?
Find(1) will allow me to find files of exactly a certain number
of blocks, but not over a certain number of blocks.
Specify the size as: +size.
The man page states:
+n meaning more than n, -n meaning less than n and n meaning exactly n.
--
Real life: Thomas Tornblom Email: thomas@uppsala.telesoft.se
Snail mail: Telesoft Uppsala AB Phone: +46 18 189406
Box 1218 Fax: +46 18 132039
S - 751 42 Uppsala, Sweden
felps@convex.com (Robert Felps) (10/11/90)
In <2141@megadon.UUCP> kevinc%tekig5.pen.tek.com (Kevin E Cosgrove) writes: >Does anyone know how to find files of a certain size or larger? >Find(1) will allow me to find files of exactly a certain number >of blocks, but not over a certain number of blocks. Try, find . -size +100 -print unless I'm not understanding your problem you just need to use the - or +. >Thanks.... >__________________________________________________________________________ > Kevin Cosgrove Tektronix, Inc. > Hardware/Software Engineer PO Box 500, M/S 39-130 > WMD Product Engineering Beaverton, OR 97077 > kevinc@tekig5.PEN.TEK.COM (503)-627-5212 >__________________________________________________________________________
lrul00@dixel.Kodak.COM (Richard C. Dempsey) (10/12/90)
In article <felps.655659294@convex.convex.com> felps@convex.com (Robert Felps) writes: >In <2141@megadon.UUCP> kevinc%tekig5.pen.tek.com (Kevin E Cosgrove) writes: >>Does anyone know how to find files of a certain size or larger? >>Find(1) will allow me to find files of exactly a certain number >>of blocks, but not over a certain number of blocks. >Try, > find . -size +100 -print >unless I'm not understanding your problem you just need to use the - or +. 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. -- Richard C. Dempsey, Computational Science Lab | dempsey@Kodak.COM 10th Floor, Bldg 83, RL | KODAKR(DEMPSEY) Eastman Kodak Company | (716) 477-3457 Rochester, NY 14650-2205 |
meissner@osf.org (Michael Meissner) (10/13/90)
In article <1990Oct12.125125.15538@kodak.kodak.com> lrul00@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@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?
emv@math.lsa.umich.edu (Edward Vielmetti) (10/13/90)
In article <1990Oct12.125125.15538@kodak.kodak.com> lrul00@dixel.Kodak.COM (Richard C. Dempsey) writes: >Try, > find . -size +100 -print >unless I'm not understanding your problem you just need to use the - or +. 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... try it, it work(ed) on SunOS 4.0.3, Ultrix 4.0, and BSD 4.3 (Vax). Learn something new every day... --Ed
george@hls0.hls.oz (George Turczynski) (10/18/90)
In article <1990Oct12.125125.15538@kodak.kodak.com>, lrul00@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. > This is not the `entire' discussion about the size qualifier ! In the first paragraph after the "USAGE" sub-heading the manual reads: Operators 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. Please, if you're going to quote manual entries, read them in their entirety first. Conclusion: The +/- syntax DOES work on SunOS, at least. Don't believe what someone has read until you read it for yourself :-) -- George P. J. Turczynski, Computer Systems Engineer. Highland Logic Pty Ltd. ACSnet: george@highland.oz |^^^^^^^^^^^^^^^^^^^^^^^^| Suite 1, 348-354 Argyle St Phone: +61 48 683490 | Witty remarks are as | Moss Vale, NSW. 2577 Fax: +61 48 683474 | hard to come by as is | Australia. --------------------------- space to put them ! ---------------------------