Skip to content

Instantly share code, notes, and snippets.

@nayyaung
Last active December 27, 2019 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nayyaung/dc48757a321311d36e8a929d741401fb to your computer and use it in GitHub Desktop.
Save nayyaung/dc48757a321311d36e8a929d741401fb to your computer and use it in GitHub Desktop.
Passing bash variable to jq for usage in slurp expression
jq --arg variable "$variable" -s '.[0] * .... "'$variable'" ... ' other-input-to-slurp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment