Last active
October 1, 2016 17:43
-
-
Save Vultour/d58a675d7172fa0883f54ae7c2405fe5 to your computer and use it in GitHub Desktop.
Finds links that can cause trouble (relative links)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Finds links that can cause trouble (relative links) | |
# flags '#' links, you might want to filter those | |
grep -rnoE 'src=".*?"' _OUTPUT/ | grep '.html' | grep -vE 'http|mailto:' | sort | uniq -f 1 | awk -F : '{print $3, "---", $2, " : ", $1}' | |
grep -rnoE 'href=".*?"' _OUTPUT/ | grep '.html' | grep -vE 'http|mailto:' | sort | uniq -f 1 | awk -F : '{print $3, "---", $2, " : ", $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment