![]() |
![]()
| ![]() |
![]()
NAMEcsvlook - csvlook Documentation DESCRIPTIONRenders a CSV to the command line in a Markdown-compatible, fixed-width format: usage: csvlook [-h] [-d DELIMITER] [-t] [-q QUOTECHAR] [-u {0,1,2,3}] [-b] If a table is too wide to display properly try piping the output to less -S or truncating it using csvcut. If the table is too long, try filtering it down with grep or piping the output to less. See also: Arguments common to all tools. NOTE: The fractional part of a decimal numberal is always
truncated. To control this truncation, use --no-inference along with
--max-column-width.
EXAMPLESBasic use: csvlook examples/testfixed_converted.csv This tool is especially useful as a final operation when piping through other tools: csvcut -c 9,1 examples/realdata/FY09_EDU_Recipients_by_State.csv | csvlook If a data row contains more cells than the header row, csvlook will error. Use csvclean to remove such rows. To ignore the extra cells, instead: csvcut -C "" examples/bad.csv | csvlook If these rows are at the top of the file (for example, copyright notices), you can skip the rows: csvlook --skip-lines 1 examples/bad.csv This error can also occur if csvlook incorrectly deduces ("sniffs") the CSV format. To disable CSV sniffing, set --snifflimit 0 and then, if necessary, set the --delimiter and --quotechar options yourself. Or, set --snifflimit -1 to use the entire file as the sample, instead of the first 1024 bytes. AUTHORChristopher Groskopf and contributors COPYRIGHT2016, Christopher Groskopf and James McKinney
|