Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 21:35:40 -0800
From:      paul beard <paulbeard@mac.com>
To:        freebsd-stable <freebsd-stable@FreeBSD.ORG>
Subject:   Re: problems rebuilding locate database
Message-ID:  <3C9D65AC.30209@mac.com>
References:  <3C9CEDC8.4070001@mac.com> <041f01c1d2b2$bce32920$0900a8c0@max> <3C9D0E29.70801@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
-- 
Paul Beard
8040 27th Ave NE
Seattle WA 98115
206 529 8400

A baby is an alimentary canal with a loud voice at one end and no
responsibility at the other.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C9D65AC.30209>