2021-09-01 20:53:12 +03:00
|
|
|
# TODO: test for jq -R . <(echo -ne 'a\nb') <(echo c) produces "a" and "bc"
|
2021-09-01 16:01:13 +03:00
|
|
|
/a:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
/c:
|
|
|
|
c
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq -R . a c
|
2021-09-01 16:01:13 +03:00
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq -Rs . a c
|
2021-09-01 16:01:13 +03:00
|
|
|
"a\nb\nc\n"
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq -nRs input a c
|
2021-09-01 20:53:12 +03:00
|
|
|
"a\nb\nc\n"
|
2022-05-21 20:33:52 +03:00
|
|
|
$ fq -nRs inputs a c
|
2021-09-01 20:53:12 +03:00
|
|
|
"a\nb\nc\n"
|
2021-09-01 16:01:13 +03:00
|
|
|
$ fq -R
|
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
2021-09-01 20:53:12 +03:00
|
|
|
$ fq -nR input
|
|
|
|
"a"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
$ fq -nR inputs
|
|
|
|
"a"
|
|
|
|
"b"
|
|
|
|
"c"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
2021-09-01 16:01:13 +03:00
|
|
|
$ fq -Rs
|
|
|
|
"a\nb\nc\n"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
2021-09-01 20:53:12 +03:00
|
|
|
$ fq -nRs input
|
|
|
|
"a\nb\nc\n"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
$ fq -nRs inputs
|
|
|
|
"a\nb\nc\n"
|
|
|
|
stdin:
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
2021-09-13 13:12:34 +03:00
|
|
|
$ fq -R . missing
|
|
|
|
exitcode: 2
|
|
|
|
stderr:
|
2022-02-21 00:25:46 +03:00
|
|
|
error: missing: no such file or directory
|
2021-09-13 13:12:34 +03:00
|
|
|
$ fq -Rs . missing
|
|
|
|
""
|
|
|
|
exitcode: 2
|
|
|
|
stderr:
|
2022-02-21 00:25:46 +03:00
|
|
|
error: missing: no such file or directory
|