Check out all the repositories, given a list of repositories in the parent directory. The NR!=1
thing in awk skips the first line, and the $0=$1
assigns the first field to the whole line ($0 is what's printed with no other action). I think the rest is pretty self-explanatory?
./contributors.sh > contributors.csv
awk -F, 'NR != 1 && $0=$1' contributors.csv | sort -u > repolist
mkdir repo
cd repo
for repo in $(<../repolist); do git clone https://github.com/Kong/$repo; done
Get all the non-Kong / non-mashape contributors:
for D in *; do git -C $D log --pretty="%an <%ae>%n%cn <%ce>"; done | sort -u | grep -v -e @mashape.com -e @konghq.com > ../repousers.txt
All contributors, with counts:
for D in *; do echo $D; git -C $D shortlog -sne --all; done | tee ../contributors.txt
Note that the github group membership thing only knows about current members; it does not remember contributors' prior affiliation.