sort-by-column
Usage:Description:crux sort-by-column [options] <filename> <column name>
Sort the rows of a tab-delimited file according to the values in a specified column.
Input:Output:
- <filename> – A tab-delimited file, with column headers in the first row. Use "-" to read from standard input.
- <column name> – A column name
The program prints to standard output a copy of the given file, with rows sorted according to the values in the specified column.
Options:
--delimiter <char>|tab
– Specify the input and output delimiter to use when processing the delimited file. Default=tab.--header T|F
– Print the header line of the file, in addition to the rows that match. Default=T.--column-type int|real|string
– Specify the data type of the column, either an integer (int
), a floating point number (real
), or astring
. The default value isstring
.--ascending T|F
– Sort the file in ascending (T) or descending (F) order. Default=T.--verbosity <0-100>
– Specify the verbosity of the current processes. Each level prints the following messages, including all those at lower verbosity levels: 0-fatal errors, 10-non-fatal errors, 20-warnings, 30-information on the progress of execution, 40-more progress information, 50-debug info, 60-detailed debug info. Default = 30.