csv-sort

NAME

csv-sort - sort CSV file by column(s)

SYNOPSIS

csv-sort [OPTION]…

DESCRIPTION

Read CSV stream from standard input, sort it by chosen column and print resulting file to standard output.

-c, --columns=NAME1[,NAME2…]
sort first by column NAME1, then NAME2, etc.
-r, --reverse
sort in descending order
-s, --show
print output in table format
-S, --show-full
print output in table format with pager
-T, --table=NAME
apply to rows only with _table column equal NAME
--help
display this help and exit
--version
output version information and exit

EXAMPLES

csv-ls -c name,size | csv-sort -c size -r -s
print files, sorted by size, in descending order

SEE ALSO

sort(1), csv-show(1), csv-nix-tools(7)