Created
January 23, 2018 07:57
-
-
Save vpadhariya/90ab71c2a6a1203f5f9aa75ad5c5f32a to your computer and use it in GitHub Desktop.
Clone site and remove query string values from the files in linux.
This file contains hidden or 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
# Clone entire site. | |
wget --content-disposition --execute robots=off --recursive --no-parent --continue --no-clobber http://example.com | |
# Remove query string from a static resource. | |
for i in `find $1 -type f -name "*\?*"`; do mv $i `echo $i | cut -d? -f1`; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK here is the new version for 2024
Download Site Command
Rename files (works fine for macos)