From owner-freebsd-stable Sun Mar 24 14: 0:50 2002 Delivered-To: freebsd-stable@freebsd.org Received: from pi.yip.org (pi.yip.org [199.45.111.121]) by hub.freebsd.org (Postfix) with ESMTP id A894E37B426 for ; Sun, 24 Mar 2002 14:00:45 -0800 (PST) Received: (from melange@localhost) by pi.yip.org (8.11.3/8.11.3) id g2OM0de93960; Sun, 24 Mar 2002 17:00:39 -0500 (EST) (envelope-from melange@yip.org) Date: Sun, 24 Mar 2002 17:00:39 -0500 From: Bob K To: paul beard Cc: freebsd-stable Subject: Re: problems rebuilding locate database Message-ID: <20020324170039.D1331@yip.org> References: <3C9CEDC8.4070001@mac.com> <041f01c1d2b2$bce32920$0900a8c0@max> <3C9D0E29.70801@mac.com> <3C9D65AC.30209@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C9D65AC.30209@mac.com>; from paulbeard@mac.com on Sat, Mar 23, 2002 at 09:35:40PM -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Mar 23, 2002 at 09:35:40PM -0800, paul beard wrote: > well, my earlier shell commands to find the length of all the > files' paths were useless, but now that my young'uns are asleep, I > came up with this. > > find / -type d | awk '{ a=length; print $0, a}' | sort -T . -k > 2.1 -rnt ' ' -o sorted > > It works fine except for dumping the files with embedded spaces to > the bottom of the list. I still find no paths longer than 200 > characters, nowhere near the 1035 locate was griping about. Hmm. Perhaps you have some hard links to directories that may be causing a loop of some sort? Just a theory... -- Bob | It's pretty good, if you don't think about it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message