mirror of
https://github.com/wader/fq.git
synced 2024-12-25 14:23:18 +03:00
92 lines
1.4 KiB
Plaintext
92 lines
1.4 KiB
Plaintext
/a:
|
|
a
|
|
/b:
|
|
b
|
|
/c:
|
|
c
|
|
$ fq -d raw ._description /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
$ fq -d raw (.,inputs)._description /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
$ fq -d raw (.,input,input,input)._description /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
exitcode: 5
|
|
stderr:
|
|
error: break
|
|
$ fq -d raw -n (.,inputs)._description /a /b /c
|
|
null
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
$ fq -d raw -n inputs._description /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
$ fq -d raw -n '[inputs._description]' /a /b /c
|
|
[
|
|
"/a",
|
|
"/b",
|
|
"/c"
|
|
]
|
|
$ fq -d raw -n (input,input,input,input)._description /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
exitcode: 5
|
|
stderr:
|
|
error: break
|
|
$ fq -d raw input_filename /a /b /c
|
|
"/a"
|
|
"/b"
|
|
"/c"
|
|
$ fq -d raw input_filename /a /non-existing /c
|
|
"/a"
|
|
"/c"
|
|
exitcode: 2
|
|
stderr:
|
|
error: open testdata/non-existing: no such file or directory
|
|
$ fq -d raw '(' /a /b /c
|
|
exitcode: 3
|
|
stderr:
|
|
error: arg:1:2: unexpected token <EOF>
|
|
$ fq -d raw bla /a /b /c
|
|
exitcode: 3
|
|
stderr:
|
|
error: arg:1:0: function not defined: bla/0
|
|
$ fq -d raw '1+"a"' /a /b /c
|
|
exitcode: 5
|
|
stderr:
|
|
error: cannot add: number (1) and string ("a")
|
|
error: cannot add: number (1) and string ("a")
|
|
error: cannot add: number (1) and string ("a")
|
|
$ fq -s -d raw [.[]._description] /a /b /c
|
|
[
|
|
"/a",
|
|
"/b",
|
|
"/c"
|
|
]
|
|
$ fq -n -s -d raw . /a /b /c
|
|
null
|
|
$ fq . /a
|
|
exitcode: 4
|
|
stderr:
|
|
error: /a: failed to decode (probe), try -d FORMAT to force
|
|
$ fq -i -d raw . /a /b /c
|
|
raw, ...[3]> ._format
|
|
"raw"
|
|
"raw"
|
|
"raw"
|
|
raw, ...[3]> ^D
|
|
$ fq -i -s -d raw . /a /b /c
|
|
[raw, ...][3]> .[]._format
|
|
"raw"
|
|
"raw"
|
|
"raw"
|
|
[raw, ...][3]> ^D
|