Home / Linux / simple JSON tables in the terminal : linux

simple JSON tables in the terminal : linux

simple JSON tables in the terminal : linux

jtbl simply does the proper factor. You pipe in JSON or JSON Lines and a ravishing desk is printed. No configuring of headers. It will auto-wrap in case your terminal is just too slim for the knowledge. You can truncate vs. wrap, if you would like, however aside from that it is fairly simple and stylish.

https://blog.kellybrazil.com/2020/03/09/json-tables-in-the-terminal/

https://github.com/kellyjonbrazil

Example:

$ cat cities.json | jtbl 
  LatD    LatM    LatS  NS      LonD    LonM    LonS  EW    City               State
------  ------  ------  ----  ------  ------  ------  ----  -----------------  -------
    41       5      59  N         80      39       zero  W     Youngstown         OH
    42      52      48  N         97      23      23  W     Yankton            SD
    46      35      59  N        120      30      36  W     Yakima             WA
    42      16      12  N         71      48       zero  W     Worcester          MA
    43      37      48  N         89      46      11  W     Wisconsin Dells    WI
    36       5      59  N         80      15       zero  W     Winston-Salem      NC

About Agent

Check Also

Google Anthos Update Aims at AWS, Puts Azure in Crosshairs

Google Anthos Update Aims at AWS, Puts Azure in Crosshairs Google …

Leave a Reply

Your email address will not be published. Required fields are marked *