Created
March 17, 2023 14:04
-
-
Save tdewin/6ae88fcd9f0ab84279076e24567b2688 to your computer and use it in GitHub Desktop.
curl jq download of gists
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
| DL=$(curl "https://api.github.com/gists/766e78e248acd7308ce9e34ad490dd14") | |
| FNAME=$(echo $DL | jq -r '[.files[] | .filename] | .[0]') | |
| echo $DL | jq -r ".files[\"$FNAME\"].content" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment