Created
October 16, 2017 17:55
-
-
Save benjaminoakes/06e1ac8a841379904b0224bce6cc3992 to your computer and use it in GitHub Desktop.
This file contains 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
gist_urls_file=$(mktemp) | |
gist -l | sed 's/ .*$//' > $gist_urls_file | |
cat $gist_urls_file | while read -r line; do | |
gist_url="$line" | |
gist_id="$(echo $gist_url | sed 's|https://gist.github.com/||')" | |
clone_url="git@gist.github.com:$gist_id.git" | |
git clone $clone_url | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment