2021-08-28 21:07:57 +03:00
|
|
|
$ fq -i
|
|
|
|
null> {a: 123, b: []} | debug
|
|
|
|
{
|
|
|
|
"a": 123,
|
|
|
|
"b": []
|
|
|
|
}
|
|
|
|
null> {a: 123, b: []} | debug({a})
|
|
|
|
{
|
|
|
|
"a": 123,
|
|
|
|
"b": []
|
|
|
|
}
|
|
|
|
null> ^D
|
|
|
|
stderr:
|
|
|
|
["DEBUG",{"a":123,"b":[]}]
|
|
|
|
["DEBUG",{"a":123}]
|
2022-01-07 13:01:28 +03:00
|
|
|
$ fq -n 'null, {a:1}, "abc" | ., "\n" | print'
|
|
|
|
null
|
|
|
|
{"a":1}
|
|
|
|
abc
|
|
|
|
$ fq -n 'null, {a:1}, "abc" | println'
|
|
|
|
null
|
|
|
|
{"a":1}
|
|
|
|
abc
|
|
|
|
$ fq -n 'null, {a:1}, "abc" | ., "\n" | printerr'
|
|
|
|
stderr:
|
|
|
|
null
|
|
|
|
{"a":1}
|
|
|
|
abc
|
|
|
|
$ fq -n 'null, {a:1}, "abc" | printerrln'
|
|
|
|
stderr:
|
|
|
|
null
|
|
|
|
{"a":1}
|
|
|
|
abc
|
|
|
|
$ fq -n 'null, {a:1}, "abc" | ., "\n" | stderr'
|
|
|
|
null
|
|
|
|
"\n"
|
|
|
|
{
|
|
|
|
"a": 1
|
|
|
|
}
|
|
|
|
"\n"
|
|
|
|
"abc"
|
|
|
|
"\n"
|
|
|
|
stderr:
|
|
|
|
null"\n"{"a":1}"\n""abc""\n"
|