mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
formatting
This commit is contained in:
@ -193,12 +193,12 @@ $ cat table.txt
|
|||||||
### We want to skip this header ###
|
### We want to skip this header ###
|
||||||
col1 col2
|
col1 col2
|
||||||
foo 1
|
foo 1
|
||||||
bar 1
|
bar 2
|
||||||
### We want to skip this footer ###
|
### We want to skip this footer ###
|
||||||
$ cat table.txt | jc 1:-1 --asciitable
|
$ cat table.txt | jc 1:-1 --asciitable
|
||||||
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"1"}]
|
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"2"}]
|
||||||
$ cat table.txt | jc 1:4 --asciitable
|
$ cat table.txt | jc 1:4 --asciitable
|
||||||
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"1"}]
|
[{"col1":"foo","col2":"1"},{"col1":"bar","col2":"2"}]
|
||||||
```
|
```
|
||||||
In this example `1:-1` and `1:4` line slices provide the same output.
|
In this example `1:-1` and `1:4` line slices provide the same output.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user