Closed woky closed 4 years ago
In jq file
#!/usr/bin/jq -f "foo=\(.somelist | join(","))"
the closing parenthesis of join is highlighted same as \( whose matching ) is highlighted as string.
\(
)
The jq filter does
% echo '{"somelist": [1, 2, 3]}' |\ jq -r '"foo=\(.somelist | join(","))"' foo=1,2,3
In jq file
the closing parenthesis of join is highlighted same as
\(
whose matching)
is highlighted as string.The jq filter does