Skip to content

Instantly share code, notes, and snippets.

@bluemanos
Last active November 16, 2015 18:39
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 bluemanos/e699c886a10f38182769 to your computer and use it in GitHub Desktop.
Save bluemanos/e699c886a10f38182769 to your computer and use it in GitHub Desktop.
Download page with CSS/JS/IMG folder structure
# recursive download all page and linked subpages
wget -p -N -r -np http://url-to-download.com/page/
# mass rename files
rename -v 's/\.php/\.html/' *.php
# batch replace text in files (recursive)
find . -type f -exec sed -i 's/.php/.html/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment