Last active
September 22, 2020 02:05
-
-
Save dmshvetsov/026e31f2a871a4ec5fb5617f755358e0 to your computer and use it in GitHub Desktop.
Check if you miss any page when migrated a site from one domain to another, or from one tech to another. In this example dmitryshvetsov.com and localhost:8000 is used.
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
curl https://dmitryshvetsov.com/sitemap.xml | \ | |
grep -e loc | \ | |
sed 's:<loc>\(.*\)<\/loc>$:\1:g' | \ | |
sed -e 's/^[[:space:]]*//' | \ | |
sed 's/https:\/\/dmitryshvetsov\.com/http:\/\/localhost:8000/' | \ | |
while read -r line; do open $line; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment