Created
January 7, 2016 19:01
-
-
Save frioux/edb285d93611544f8e12 to your computer and use it in GitHub Desktop.
How many stars do you have in total?
This file contains hidden or 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
#!/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