csort —
sort lines of text files in the C
locale
csort |
[options...] [files...] |
The csort utility is merely a shorthand
for “env LC_COLLATE=C sort” to sort lines of text from
standard input or from a set of files using the sort and collation rules
specified by the “C” POSIX locale. It passes all command-line
arguments to
sort(1).
Sort the output of
ls(1) by size:
ls -l | csort -k5,5n
Sort a set of files in reverse:
csort -r *.txt
The csort utility was written by
Peter Pentchev in 2013.
Peter Penchev
⟨roam@ringlet.net⟩