Commit 0c3c2bf7 authored by Pavel Gajdušek's avatar Pavel Gajdušek

changes struct, script

parent 18cefc67
......@@ -4,7 +4,7 @@
for file in $@; do
check=$(cat $file | grep -Eo "\[.*?\]\([^ ]*\)" | grep -v "#" | grep -vE "http|www|ftp|none" | sed 's/\[.*\]//g' | sed 's/[()]//g' | sed 's/\/$/.md/g')
check=$(cat $file | grep -Po "\[.*?\]\(.*?\)" | grep -v "#" | grep -vE "http|www|ftp|none" | sed 's/\[.*\]//g' | sed 's/[()]//g' | sed 's/\/$/.md/g')
if [ ! -z "$check" ]; then
# echo "\n+++++ $file +++++\n"
......@@ -24,7 +24,9 @@ else
echo "\n+++++ $file +++++\n"
fi
wrong=1
# echo "wrong link in $(readlink -m $pathtocheck)"
echo "wrong link in $pathtocheck"
fi
done
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment