stackalytics/scripts/grab-all-emails.sh
2013-06-22 15:42:32 +04:00

12 lines
369 B
Bash
Executable File

#!/bin/bash
grep -v '^#' grizzly-with-libs | \
while read project; do \
cd ~/Work/metric-root/$project; \
git log | awk -F '[<>]' '/^Author:/ {print $2}'; \
done | sort | uniq | grep -v '\((none)\|\.local\)$' > tmp
sed 's/ /\n/' < aliases >> tmp
sed 's/ /\n/' < other-aliases >> tmp
(sort | uniq | grep -v '\((none)\|\.local\)$') < tmp > emails.txt
rm tmp