@@ -2239,7 +2239,7 @@ Directory 0 address state
2239
2239
bash $
2240
2240
```
2241
2241
Equally, the same could be achived with the `$PATH` token:
2242
- ```bash
2242
+ ```bash SKIP FIXME
2243
2243
bash $ <ab.json jtc -w'<$#:\t>v<NY>' -qqT'"{$PATH}"'
2244
2244
Directory 0 address state
2245
2245
bash $
@@ -3648,15 +3648,15 @@ bash $
3648
3648
Couple options allow altering the behavior and process all the input JSONs:
3649
3649
3650
3650
Option `-a` instructs to process each of the input JSONS:
3651
- ```bash
3651
+ ```bash SKIP FIXME
3652
3652
bash $ <<<'[ "1st json" ] { "2nd": "json" } "3rd json"' jtc -ar
3653
3653
[ "1st json" ]
3654
3654
{ "2nd": "json" }
3655
3655
"3rd json"
3656
3656
bash $
3657
3657
```
3658
3658
\- respected processing (of all given options) will occur for all of the input JSONs:
3659
- ```bash
3659
+ ```bash SKIP FIXME
3660
3660
bash $ <<<'[ "1st json" ] { "2nd": "json" } "3rd json"' jtc -a -w'<json>R'
3661
3661
"1st json"
3662
3662
"json"
@@ -3743,7 +3743,9 @@ bash $ jtc -w'[0][:][name]' -aj ab.json ab.json
3743
3743
"Jane"
3744
3744
]
3745
3745
bash $
3746
- # process all input JSONs and wrap them into an array:
3746
+ ```
3747
+ process all input JSONs and wrap them into an array:
3748
+ ```bash
3747
3749
bash $ jtc -w'[0][:][name]' -J ab.json ab.json
3748
3750
[
3749
3751
"John",
@@ -3754,7 +3756,9 @@ bash $ jtc -w'[0][:][name]' -J ab.json ab.json
3754
3756
"Jane"
3755
3757
]
3756
3758
bash $
3757
- # process and wrap each input JSON into an array and then wrap all the processed into a super array:
3759
+ ```
3760
+ process and wrap each input JSON into an array and then wrap all the processed into a super array:
3761
+ ```bash
3758
3762
bash $ jtc -w'[0][:][name]' -Jj ab.json ab.json
3759
3763
[
3760
3764
[
@@ -3868,7 +3872,7 @@ too many of very tiny JSONs, then such processing might be even slower (due to t
3868
3872
To disable multithreaded parsing and revert to a single-threaded mode use option `-a` (in the initial option set).
3869
3873
3870
3874
Compare:
3871
- ```bash
3875
+ ```bash SKIP
3872
3876
bash $ # multithreaded input file parsing
3873
3877
bash $ /usr/bin/time jtc -J / -zz big.json big.json
3874
3878
30000033
@@ -3953,7 +3957,7 @@ could be virtually endless), for the same reason the behavior of option `-J` is
3953
3957
an endless stream of JSONs).
3954
3958
Thus, if neither of option-sets caters `-J` option, then the result of the operations should be identical (it might not be identical
3955
3959
if there was namespace dependency in the walks - due to difference in processing it might result in a discrepancy of the results):
3956
- ```bash
3960
+ ```bash SKIP FIXME
3957
3961
bash $ <file.json jtc -aw[:] -u'[{{}}];' / -raw'[:][0]<(\w+) (\w+)>R[-1]' -u'[{{$1}}, {{$2}}];'
3958
3962
{ "1": [ "first", "JSON" ] }
3959
3963
{ "2": [ "second", "JSON" ] }
0 commit comments