Skip to content

Instantly share code, notes, and snippets.

@bradlucas
Created June 17, 2017 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradlucas/2d8c703ba0543768efab301b3276f021 to your computer and use it in GitHub Desktop.
Save bradlucas/2d8c703ba0543768efab301b3276f021 to your computer and use it in GitHub Desktop.
get-all-local-authors.sh
#!/bin/bash
(for f in `find . -maxdepth 1 -type d`;
do
pushd > /dev/null $f
# only do something if there is a .git directory
# do something only if there is a .git directory
if [[ -d ".git" ]]
then
get-first-commit-log.sh | grep -m 1 Author: | cut -f2- -d' ' | awk -F'[<>]' '{print $2}'
fi
popd > /dev/null
done) | sort --ignore-case | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment