Skip to content

Instantly share code, notes, and snippets.

@frioux
Created January 7, 2016 19:01
Embed
What would you like to do?
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