Skip to content

Instantly share code, notes, and snippets.

@dmshvetsov
Last active September 22, 2020 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmshvetsov/026e31f2a871a4ec5fb5617f755358e0 to your computer and use it in GitHub Desktop.
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.
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