Last active
November 19, 2019 22:07
Revisions
-
patrickhuber revised this gist
Nov 19, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ 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 -
patrickhuber created this gist
Nov 19, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ [{"slug":"stemcells-ubuntu-xenial","versions":[{"version":97},{"products":["cf"],"version":250}]},{"slug":"stemcells","versions":[{"version":3586},{"version":3541}]}]