diff --git a/count_links.sh b/count_links.sh index 202d67c..4c98db3 100755 --- a/count_links.sh +++ b/count_links.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash BASEDIR=$(dirname "$0") -cut -d'(' -f2 "$BASEDIR/README.md" | cut -d')' -f1 | grep -E "^http*" | sort -u | wc -l | tr -d ' ' +cut -d'(' -f2 $(pwd)/sections/*.md README.md | cut -d')' -f1 | grep "^http" | sort -u | wc -l | tr -d ' '