Date: Sun, 15 Nov 1998 19:26:16 +0300 From: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> To: Wolfram Schneider <wosch@panke.de.freebsd.org> Cc: current@FreeBSD.ORG Subject: Re: sort option for find Message-ID: <199811151626.TAA04794@tejblum.dnttm.rssi.ru> In-Reply-To: Your message of "Sun, 15 Nov 1998 14:05:18 %2B0100." <19981115140518.A2166@panke.de.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Wolfram Schneider wrote:
> >
> > That depends on what do you call "lexicographical order". How do you
> > compare "foo-1.2.3/Makefile" and "foo/Makefile", for example? (Anyhow,
>
> I compare the file "foo-1.2.3" with the file "foo" and
> "foo-1.2.3" is greater. The directory "foo" will be visited first.
>
> I don't sort the output - I change the order
> of the traversal of the file hierarchy. As a side effect, the output
> will be sorted on a per directory basis.
Sure, but did you noticed that strcmp("foo-1.2.3/Makefile",
"foo/Makefile") < 0? That is, 'find -s' and 'find | sort' give
different results? Is it ok?
Dima
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811151626.TAA04794>
