jtq.1 - json2tsv - JSON to TSV converter
 (HTM) git clone git://git.codemadness.org/json2tsv
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       jtq.1 (795B)
       ---
            1 .Dd August 30, 2022
            2 .Dt JTQ 1
            3 .Os
            4 .Sh NAME
            5 .Nm jtq
            6 .Nd json2tsv convenience wrapper script using awk as a query language
            7 .Sh SYNOPSIS
            8 .Nm
            9 .Op Fl n
           10 .Op Ar awk expressions...
           11 .Sh DESCRIPTION
           12 .Nm
           13 reads JSON data from stdin.
           14 When any
           15 .Ar awk expressions
           16 are given then the
           17 .Xr json2tsv 1
           18 options
           19 .Fl r
           20 and
           21 .Fl F Ar '\ex1f'
           22 and
           23 .Fl R Ar '\ex1e'
           24 are passed also.
           25 If there are no
           26 .Ar awk expressions
           27 given then it passes the input to
           28 .Xr json2tsv 1 .
           29 .Pp
           30 The options are as follows:
           31 .Bl -tag -width Ds
           32 .It Fl n
           33 Show the indices for array types (by default off).
           34 .El
           35 .Sh EXIT STATUS
           36 .Ex -std
           37 .Sh EXAMPLES
           38 .Bd -literal
           39 echo '{"url":"https://codemadness.org/"}' | \e
           40         jtq '$1 == ".url" { print $3 }'
           41 .Ed
           42 .Sh SEE ALSO
           43 .Xr awk 1 ,
           44 .Xr json2tsv 1
           45 .Sh AUTHORS
           46 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org