~q3cpma/csv-view

A simple CSV/DSV visualiser
Minor changes
Change the min/max functionality to work on columns and some general cleanup

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~q3cpma/csv-view
read/write
git@git.sr.ht:~q3cpma/csv-view

You can also use your local clone with git send-email.

    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