Skip to content

Commit 7ff2e31

Browse files
committed
Quick Save
1 parent 63e476c commit 7ff2e31

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

cmds/jsoncols/jsoncols.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ space delimited string.
6666
6767
This would yeild
6868
69-
"Doe, Jane"|42
69+
Doe, Jane|42
7070
7171
You can also pipe JSON data in.
7272

demos/myblob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name": "Doe, Jane", "email": "[email protected]"}
1+
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}

docs/jsoncols.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ extracted is a comma. This can be overridden with an option.
2020

2121
## OPTIONS
2222

23-
-d set the delimiter for multi-field output
23+
-csv output as CSV or other flat delimiter row
24+
-d set the delimiter for multi-field csv output
25+
-dimiter set the delimiter for multi-field csv output
2426
-h display help
2527
-help display help
2628
-i input filename
@@ -32,6 +34,7 @@ extracted is a comma. This can be overridden with an option.
3234
-output output filename
3335
-permissive suppress error messages
3436
-quiet suppress error messages
37+
-quote if dilimiter is found in column value add quotes for non-CSV output
3538
-r run interactively
3639
-repl run interactively
3740
-v display version
@@ -45,6 +48,7 @@ If myblob.json contained
4548
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}
4649
```
4750

51+
4852
Getting just the name could be done with
4953

5054
```shell
@@ -53,7 +57,7 @@ Getting just the name could be done with
5357

5458
This would yeild
5559

56-
```csv
60+
```json
5761
"Doe, Jane"
5862
```
5963

0 commit comments

Comments
 (0)