Your Perl one-liner is only reading one line at a time so it won't affect line wrapped iframe's. Try changing it to this:
find . -name '*.html' -print0 | xargs -0 perl -pi -0777e 's|<iframe\s+ +src="http://.+?/?click=[^>]*>.*?</iframe>||sig'
In reply to Re: need help for search and replace oneliner
by jwkrahn
in thread need help for search and replace oneliner
by doniking
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |