We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the scripts depend on Python for string manipulation.
We should either:
The text was updated successfully, but these errors were encountered:
Turning a JSON array into a list of escaped shell args jq -r 'map("\"" + . + "\"") | join(",")' should do:
jq -r 'map("\"" + . + "\"") | join(",")'
> echo '["a", "b", "cd ef", "$d"]' | jq -r 'map("\"" + . + "\"") | join(" ")' "a" "b" "cd ef" "$d"
/edit: oh, apparently no escaping but comma-separation is required: jq -r '. | join(",")'
jq -r '. | join(",")'
> echo '["a", "b", "cd ef", "$d"]' | jq -r '. | join(",")' a,b,cd ef,$d
Sorry, something went wrong.
g-awmalik
No branches or pull requests
Currently the scripts depend on Python for string manipulation.
We should either:
The text was updated successfully, but these errors were encountered: