NOTE: there are some crashes here and there (-d$'\t' -t, for example) and I now use xsv anyway, so
beware.
Description
-----------
Simple CSV/DSV visualiser with some useful options. Follows rfc4180 except that:
* Lines starting with '#' and empty lines are ignored.
* End of row is '\n' (not CLRF).
* Double quotes can be put inside quoted fields if escaped by another double quote.
+---------------------------------------------------------------------------------+
| NAME |
| csv_view - Simple CSV/DSV viewer |
| |
| SYNOPSIS |
| csv_view [-hlmM] [-f FORMAT] [-r NROWS] [-d DELIMITER] FILE |
| |
| DESCRIPTION |
| Print FILE as a table to standard output. |
| If FILE is -, read standard input instead. |
| |
| -d DELIMITER |
| Use a different delimiter than comma. |
| |
| -r NROWS |
| Ignore NROWS before searching for the column's min/max when using -m or |
| -M. Defaults to 0. |
| |
| -f FORMAT |
| Use FORMAT as printf(3) format for floating point values. |
| Defaults to "%g". |
| |
| -h |
| Print this help message and exit. |
| |
| -l |
| Use line-drawing characters for printing. |
| |
| -m |
| For each row, highlight the minimum numeric value in dim. |
| |
| -M |
| Same as -m, but highlight the maximum in bold. |
| |
| -t |
| Trim whitespace around cell content. |
| |
| -v |
| Print the version and exit. |
+---------------------------------------------------------------------------------+
Dependencies
------------
* C11 compiler (tested with clang and gcc)
* ncurses
* GNU make