From ef6ebe381f337730bd76638ecb8c6e4717facea1 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Mon, 5 Jul 2021 11:02:45 +0200 Subject: [PATCH] fix links counting routine for multiple files --- count_links.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' '