Skip to content

Instantly share code, notes, and snippets.

@frioux
Created January 7, 2016 19:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frioux/edb285d93611544f8e12 to your computer and use it in GitHub Desktop.
Save frioux/edb285d93611544f8e12 to your computer and use it in GitHub Desktop.
How many stars do you have in total?
#!/bin/dash
ego=${1:-frioux}
count=0
for repo in $(git hub repos --raw $ego); do
inner_count=$(git hub stars $repo --raw | grep -v $ego | wc -l)
count=$(($count + $inner_count))
echo "$repo: $inner_count"
done
echo "Total: $count"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment