diff --git a/top_authors.sh b/top_authors.sh index a23e4bf..82df74d 100755 --- a/top_authors.sh +++ b/top_authors.sh @@ -9,6 +9,6 @@ function fetch_top_authors() { basedir=$(dirname "$0") filter="${1:-}" - grep http "$basedir/README.md" | grep -i "${filter}" | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n + grep http "$basedir/README.md" "$basedir/sections/"*.md | grep -i "${filter}" | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n } fetch_top_authors "$@"