Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created September 15, 2022 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/10887f57bd32f1609b0009f8ed6994c1 to your computer and use it in GitHub Desktop.
Save hanksudo/10887f57bd32f1609b0009f8ed6994c1 to your computer and use it in GitHub Desktop.
Download all public gists with gh command line
#!/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