Last active
October 5, 2022 21:55
-
-
Save dublado/1296468 to your computer and use it in GitHub Desktop.
fazer baixar todos os gists de um usuário
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
#install and configure gh before to backup 10 gists | |
gistlimit=10 | |
sample=$(gh gist list --limit $gistlimit | awk '{ print $1 }') | |
for row in $(echo "${sample}"); do | |
echo $row | |
if [ ! -d $row ] | |
then | |
git clone https://gist.github.com/$row | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment