I've been trying to learn to use jq
and for bash it uses the <<<
operator which I cannot understand after reading the bash documentation, what is this operator for?
Besides that, I use the fish shell instead. How can I translate jq . <<< '{"some": "xyz"}'
(works in bash) to the fish shell?
Best Answer
The
<<<
operator is a here-string3.6.7 Here Strings
Given:
To translate this to fish shell you could likely do:
(which would work in
bash
as well)