Created
September 15, 2022 02:55
-
-
Save hanksudo/10887f57bd32f1609b0009f8ed6994c1 to your computer and use it in GitHub Desktop.
Download all public gists with gh command line
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
#!/bin/sh | |
gh api gists | jq -r '.[] | select(.public == true) | .files[].raw_url' | while read -r row ; do | |
curl -sO "$row" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment