csvtk v0.2.8
pretty
Usage
convert CSV to readable aligned table
Usage:
csvtk pretty [flags]
Flags:
-r, --align-right align right
-s, --separator string fields/columns separator (default " ")
Examples:
-
default
$ csvtk pretty names.csv id first_name last_name username 11 Rob Pike rob 2 Ken Thompson ken 4 Robert Griesemer gri 1 Robert Thompson abc NA Robert Abel 123
-
align right
$ csvtk pretty names.csv -r id first_name last_name username 11 Rob Pike rob 2 Ken Thompson ken 4 Robert Griesemer gri 1 Robert Thompson abc NA Robert Abel 123
-
custom separator
$ csvtk pretty names.csv -s " | " id | first_name | last_name | username 11 | Rob | Pike | rob 2 | Ken | Thompson | ken 4 | Robert | Griesemer | gri 1 | Robert | Thompson | abc NA | Robert | Abel | 123