question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

csvlook - border lines?

See original GitHub issue

Is there a way to make tables show borders a lot like MySql or SQLPlus? e.g.

+----------+-------+--------+
| count(1) | state | status |
+----------+-------+--------+
|    36980 |     0 |      0 |
|  5792900 |     1 |      1 |
|    14787 |     2 |      2 |
|      214 |     3 |      2 |
|     1247 |     4 |      2 |
| 35788849 |     5 |      2 |
|        1 |     7 |      1 |
+----------+-------+--------+

As far as I know, you just get field delimiting and whitespace padding but no header and footer borders.

| count(1) | state | status |
|----------|-------|--------|
|    36980 |     0 |      0 |
|  5792900 |     1 |      1 |
|    14787 |     2 |      2 |
|      214 |     3 |      2 |
|     1247 |     4 |      2 |
| 35788849 |     5 |      2 |
|        1 |     7 |      1 |

The + signs make it look even nicer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jpmckinneycommented, Jan 2, 2019

+ might look nicer, but it’s not Markdown-compatible.

Those slides must be using version 0.9.x

0reactions
jpmckinneycommented, Jan 3, 2019

This is a very minor improvement, so will likely not be changed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

csvlook — csvkit 1.0.2 documentation - Read the Docs
Renders 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] ......
Read more >
How to format csv into multiline newline delimited plain text ...
You can use miller (https://github.com/johnkerl/miller/releases/tag/5.4.0): mlr --c2x --ops "\t" put '$1=$type;$2=$name;$3=($ad1 .
Read more >
csvkit: a Swiss Army Knife for CSV Data ? | by ChiefHustler
In the command below, I'm adding line numbers with the -l flag. A downside of the csvgrep command is that I wasn't able...
Read more >
Useful CSVKit Commands - David Kittell
Look at data, formats nicely with borders. $csvlook myfile.csv. # See column names. $csvcut -n myfile.csv. # Cut out specific columns.
Read more >
Obtaining, Scrubbing, and Exploring Data at the Command Line
Obtaining, Scrubbing, and Exploring Data at the Command Line. Jeroen Janssens ... < countries.json json2csv -p -k border,surface | csvlook.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found