From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 08:55:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33DB537B401 for ; Tue, 15 Apr 2003 08:55:56 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 24CF343F85 for ; Tue, 15 Apr 2003 08:55:55 -0700 (PDT) (envelope-from mwm-dated-1050854154.b2afb6@mired.org) Received: (qmail 67986 invoked from network); 15 Apr 2003 15:55:54 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 15 Apr 2003 15:55:54 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Tue, 15 Apr 2003 10:55:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16028.11145.892806.495912@guru.mired.org> Date: Tue, 15 Apr 2003 10:55:53 -0500 To: "Michael Salsky" In-Reply-To: <000001c3030c$9d6d6930$040013ac@goofy> References: <000001c3030c$9d6d6930$040013ac@goofy> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.74 (Citation) cc: freebsd-questions@freebsd.org Subject: Re: Need to find files over a certain size. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 15:55:56 -0000 In <000001c3030c$9d6d6930$040013ac@goofy>, Michael Salsky typed: > I've read the man page on the 'find' command and couldn't find the > answer. I'm wanting to find all files on the files system bigger than > 100Mb. You have to put two parts of the man page together. First, you need: -size n[c] True if the file's size, rounded up, in 512-byte blocks is n. If n is followed by a c, then the primary is true if the file's size is n bytes (characters). Then, later on, it says: All primaries which take a numeric argument allow the number to be pre- ceded by a plus sign (``+'') or a minus sign (``-''). A preceding plus sign means ``more than n'', a preceding minus sign means ``less than n'' and neither means ``exactly n''. so you want "-size +200000" - give or take 24 parts in a thousand. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.