Closed MiSawa closed 2 years ago
Ah what...?? That looks really useful, but I don't understand the semantics of -n
then..... :thinking:
for https://github.com/wader/fq i implemented it by a global array of files to read, input
reads/decodes on file, inputs
repets input
and then let the -n
flag decide if if first input should be input
or null
. I guess for jq it's a bit more complicated as one file can have multiple JSON values or on value cab span multiple files as i understand it.
Thanks, yeah it doesn't seem to be the case for jq as you mentioned... though I think I figured out in #120.
Nice! and also nice to see all the progress on xq
Note that the
inputs
filter is often used with-n
to reduce all the input values.