-
-
Save z010107/fbb4b643401e6a027162d47ea9fabc08 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 |
Author
z010107
commented
Aug 30, 2018
•
Maybe like this - wget --content-disposition -p -k https://www.oasiscatalog.com/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment