Introduction
Introduction Statistics Contact Development Disclaimer Help
rename jtq to jaq - json2tsv - JSON to TSV converter
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
commit 45d005ecfcbc9c6735e9ced2e9f9d31cd6cfe0ce
parent 607615a6d80ffa57f81aca02f77ae94960828d63
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 31 Aug 2022 00:21:47 +0200
rename jtq to jaq
Diffstat:
M Makefile | 2 +-
R jtq -> jaq | 0
A jaq.1 | 46 +++++++++++++++++++++++++++++…
D jtq.1 | 46 -----------------------------…
4 files changed, 47 insertions(+), 47 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -19,7 +19,7 @@ JSON2TSV_CPPFLAGS = -D_DEFAULT_SOURCE
#JSON2TSV_CPPFLAGS = -D_DEFAULT_SOURCE -DGETNEXT=getchar
BIN = ${NAME}
-SCRIPTS = jtq
+SCRIPTS = jaq
SRC = ${BIN:=.c}
HDR = json.h
MAN1 = ${BIN:=.1}\
diff --git a/jtq b/jaq
diff --git a/jaq.1 b/jaq.1
@@ -0,0 +1,46 @@
+.Dd August 30, 2022
+.Dt JAQ 1
+.Os
+.Sh NAME
+.Nm jaq
+.Nd json2tsv awk query, a json2tsv convenience wrapper script
+.Sh SYNOPSIS
+.Nm
+.Op Fl n
+.Op Ar awk expressions...
+.Sh DESCRIPTION
+.Nm
+reads JSON data from stdin.
+When any
+.Ar awk expressions
+are given then the
+.Xr json2tsv 1
+options
+.Fl r
+and
+.Fl F Ar '\ex1f'
+and
+.Fl R Ar '\ex1e'
+are passed also.
+If there are no
+.Ar awk expressions
+given then it passes the input to
+.Xr json2tsv 1 .
+.Pp
+The options are as follows:
+.Bl -tag -width Ds
+.It Fl n
+Show the indices for array types (by default off).
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh EXAMPLES
+.Bd -literal
+echo '{"url":"https://codemadness.org/"}' | \e
+ jaq '$1 == ".url" { print $3 }'
+.Ed
+.Sh SEE ALSO
+.Xr awk 1 ,
+.Xr json2tsv 1
+.Sh AUTHORS
+.An Hiltjo Posthuma Aq Mt [email protected]
diff --git a/jtq.1 b/jtq.1
@@ -1,46 +0,0 @@
-.Dd August 30, 2022
-.Dt JTQ 1
-.Os
-.Sh NAME
-.Nm jtq
-.Nd json2tsv convenience wrapper script using awk as a query language
-.Sh SYNOPSIS
-.Nm
-.Op Fl n
-.Op Ar awk expressions...
-.Sh DESCRIPTION
-.Nm
-reads JSON data from stdin.
-When any
-.Ar awk expressions
-are given then the
-.Xr json2tsv 1
-options
-.Fl r
-and
-.Fl F Ar '\ex1f'
-and
-.Fl R Ar '\ex1e'
-are passed also.
-If there are no
-.Ar awk expressions
-given then it passes the input to
-.Xr json2tsv 1 .
-.Pp
-The options are as follows:
-.Bl -tag -width Ds
-.It Fl n
-Show the indices for array types (by default off).
-.El
-.Sh EXIT STATUS
-.Ex -std
-.Sh EXAMPLES
-.Bd -literal
-echo '{"url":"https://codemadness.org/"}' | \e
- jtq '$1 == ".url" { print $3 }'
-.Ed
-.Sh SEE ALSO
-.Xr awk 1 ,
-.Xr json2tsv 1
-.Sh AUTHORS
-.An Hiltjo Posthuma Aq Mt [email protected]
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.