Sort text lines alphabetically on the command line with the free Swiss File Knife for Windows, Mac OS X and Linux.
sfk ... +sort
sort text lines, case insensitive by default.
requires a previous command producing text output.
options
-case case sensitive text comparison
-rev[erse] reverse sorting order
-skiphead first line is a table header,
exclude this from sorting
-head=n keep first n lines unsorted
web referencehttp://stahlworks.com/sfk-sortexamplessfk filter csv.txt +sort
print sorted contents of csv.txt
sfk filter csv.txt +sort +view
shows output with the dview GUI tool