Skip to content

Instantly share code, notes, and snippets.

@dublado
Last active October 5, 2022 21:55
Show Gist options
  • 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