Field delimiter in sort program in freebsd

John Levine johnl at
Sun Jan 26 02:36:28 UTC 2014

>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.


More information about the freebsd-questions mailing list