@@ -6,7 +6,7 @@ A simple cli tool to print JSON data as a table in the terminal.
6
6
7
7
` jtbl ` accepts piped JSON data from ` stdin ` and outputs a text table representation to ` stdout ` . e.g:
8
8
```
9
- $ cat cities.json | jtbl
9
+ $ cat cities.json | jtbl
10
10
LatD LatM LatS NS LonD LonM LonS EW City State
11
11
------ ------ ------ ---- ------ ------ ------ ---- ----------------- -------
12
12
41 5 59 N 80 39 0 W Youngstown OH
@@ -22,7 +22,7 @@ $ cat cities.json | jtbl
22
22
23
23
It can be useful to JSONify command line output with ` jc ` , filter through a tool like ` jq ` , and present in ` jtbl ` :
24
24
```
25
- $ jc ifconfig | jq -c '.[] | {name, type, ipv4_addr, ipv4_mask}'| jtbl
25
+ $ jc ifconfig | jq -c '.[] | {name, type, ipv4_addr, ipv4_mask}'| jtbl
26
26
name type ipv4_addr ipv4_mask
27
27
------- -------------- -------------- -------------
28
28
docker0 Ethernet 172.17.0.1 255.255.0.0
@@ -218,7 +218,7 @@ To get to the data you are interested in you can use a JSON filter like `jq` or
218
218
219
219
Using ` jq ` :
220
220
```
221
- $ jc dig www.cnn.com | jq '.[0].answer'
221
+ $ jc dig www.cnn.com | jq '.[0].answer'
222
222
```
223
223
or with ` jello ` :
224
224
```
@@ -268,7 +268,7 @@ The `-n` option disables wrapping and overrides the `--cols` and `-t` options.
268
268
This can be useful to present a nicely non-wrapped table of infinite width in combination with ` less -S ` :
269
269
```
270
270
$ jc ps aux | jtbl -n | less -S
271
- user pid vsz rss tt stat started time command
271
+ user pid vsz rss tt stat started time command
272
272
------------------ ----- --------- ------ ---- ------ --------- --------- ---------------------------------------------------
273
273
joeuser 34029 4277364 24800 s000 S+ 9:28AM 0:00.27 /usr/local/Cellar/python/3.7.6_1/Frameworks/Python....
274
274
joeuser 34030 4283136 17104 s000 S+ 9:28AM 0:00.20 /usr/local/Cellar/python/3.7.6_1/Frameworks/Python....
0 commit comments