Last active
November 19, 2019 22:07
-
-
Save patrickhuber/ef61abcc8a0b21ecfda2ffe2a43f8d95 to your computer and use it in GitHub Desktop.
stemcell processing
This file contains hidden or 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
product=stemcells-ubuntu-xenial | |
version=250 | |
products=`cat stemcells.json | jq ".[] | select(.slug == \"$product\").versions | .[] | select(.version == $version).products | .[]" -r` | |
for product in $products | |
do | |
cat $product | |
done |
This file contains hidden or 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
[{"slug":"stemcells-ubuntu-xenial","versions":[{"version":97},{"products":["cf"],"version":250}]},{"slug":"stemcells","versions":[{"version":3586},{"version":3541}]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment