in reply to need help for search and replace oneliner
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need help for search and replace oneliner
by doniking (Novice) on Jun 30, 2009 at 13:58 UTC |