Skip to content

Commit 83e5b83

Browse files
formatting
1 parent 7b5e383 commit 83e5b83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A simple cli tool to print JSON data as a table in the terminal.
66

77
`jtbl` accepts piped JSON data from `stdin` and outputs a text table representation to `stdout`. e.g:
88
```
9-
$ cat cities.json | jtbl
9+
$ cat cities.json | jtbl
1010
LatD LatM LatS NS LonD LonM LonS EW City State
1111
------ ------ ------ ---- ------ ------ ------ ---- ----------------- -------
1212
41 5 59 N 80 39 0 W Youngstown OH
@@ -22,7 +22,7 @@ $ cat cities.json | jtbl
2222

2323
It can be useful to JSONify command line output with `jc`, filter through a tool like `jq`, and present in `jtbl`:
2424
```
25-
$ jc ifconfig | jq -c '.[] | {name, type, ipv4_addr, ipv4_mask}'| jtbl
25+
$ jc ifconfig | jq -c '.[] | {name, type, ipv4_addr, ipv4_mask}'| jtbl
2626
name type ipv4_addr ipv4_mask
2727
------- -------------- -------------- -------------
2828
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
218218

219219
Using `jq`:
220220
```
221-
$ jc dig www.cnn.com | jq '.[0].answer'
221+
$ jc dig www.cnn.com | jq '.[0].answer'
222222
```
223223
or with `jello`:
224224
```
@@ -268,7 +268,7 @@ The `-n` option disables wrapping and overrides the `--cols` and `-t` options.
268268
This can be useful to present a nicely non-wrapped table of infinite width in combination with `less -S`:
269269
```
270270
$ 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
272272
------------------ ----- --------- ------ ---- ------ --------- --------- ---------------------------------------------------
273273
joeuser 34029 4277364 24800 s000 S+ 9:28AM 0:00.27 /usr/local/Cellar/python/3.7.6_1/Frameworks/Python....
274274
joeuser 34030 4283136 17104 s000 S+ 9:28AM 0:00.20 /usr/local/Cellar/python/3.7.6_1/Frameworks/Python....

0 commit comments

Comments
 (0)