Introduction
Introduction Statistics Contact Development Disclaimer Help
json2tsv.1: add simplified jaq example here too - json2tsv - JSON to TSV conver…
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
commit fcf73ca5b42eb3ef32dc7d99d1b7bafa4a02df42
parent c01b7afce194e126dd9d7db3965fe6209f052e76
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 1 Sep 2022 01:50:23 +0200
json2tsv.1: add simplified jaq example here too
Diffstat:
M json2tsv.1 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/json2tsv.1 b/json2tsv.1
@@ -1,4 +1,4 @@
-.Dd August 31, 2022
+.Dd September 1, 2022
.Dt JSON2TSV 1
.Os
.Sh NAME
@@ -128,6 +128,12 @@ json2tsv -r -F '\ex1f' -R '\ex1e' < input.json | \e
print $3;
}'
.Ed
+.Pp
+The example can be simplified using the convenience wrapper shellscript
+.Xr jaq 1
+.Bd -literal
+jaq '$1 == ".url" { print $3 }' < input.json
+.Ed
.Sh SEE ALSO
.Xr awk 1 ,
.Xr jaq 1
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.