/ Published in: Bash
Be sure to backup your data! Also be sure to secure whatever broken PHP allowed this to happen.
First command can be used to search for affected files. Second command to does search and replace on matched iframe text only.
Adjust contents of iframe to suit, here it is: statanalyze.cn
Originally from: http://wordpress.org/support/topic/281767?replies=25#post-1184090
Expand |
Embed | Plain Text
# FIND find . -type f | xargs grep -l '<iframe.*statanalyze.cn.*iframe' # REPLACE find . -type f -exec sed -i 's/<iframe.*statanalyze.cn.*iframe>//g' {} \;
You need to login to post a comment.
