Last active
December 27, 2019 09:33
-
-
Save nayyaung/dc48757a321311d36e8a929d741401fb to your computer and use it in GitHub Desktop.
Passing bash variable to jq for usage in slurp expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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