Skip site navigation (1)Skip section navigation (2)
Date:      26 Jan 2014 02:36:02 -0000
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        shayan@liveve.org
Subject:   Re: Field delimiter in sort program in freebsd
Message-ID:  <20140126023602.95324.qmail@joyce.lan>
In-Reply-To: <CABAubTjqyFuvgsAHgSBL=FmazytGxY0e3YaYkd7Ur%2BOa5dG5mg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>Using \xff as the record separator makes sense for binary files. Any idea
>why there is such a condition in the sort program?

Probably because its authors implemented the POSIX spec for the sort utility,
which sorts text files.

If you want to sort binary stuff using the standard sort program, turn it into text,
sort it, and turn it back.  Or write your own specialized binary sort.

R's,
John





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