diff --git a/README.md b/README.md index 0acdb3a..1685ae2 100644 --- a/README.md +++ b/README.md @@ -103,3 +103,11 @@ gpg --no-armor --export "$MAILADRESSE" > $(gpg --with-wkd-hash --fingerprint "$M ``` 4. Füge es zum git hinzu, commite und pushe. + +## Link-Check +```sh +find _posts -mindepth 2 -type f -name 20\* -exec grep -hoP 'https?://[^])# ]+' {} + | sed s+/$++g | sort -u | while read -r link; do + status=$(curl -I "$link" | head -1 | grep -oP 'HTTP\S* \K\d+') + printf "%s\t%s\n" "$status" "$link" +done | tee link_status.txt +```