Skip to content

Instantly share code, notes, and snippets.

@dublado
Last active October 5, 2022 21: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 dublado/1296468 to your computer and use it in GitHub Desktop.
Save dublado/1296468 to your computer and use it in GitHub Desktop.
fazer baixar todos os gists de um usuário
#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