perlquestion
ybiC
I'm trying to replace all instances of <tt>img src="image.gif"</tt> with <tt>img src="/Images/image.gif"</tt> in about 100 HTML documents. Below is what I've come up with, which creates the .bak file properly, but leaves a zero-byte edited file. What am I overlooking?
<p>
<tt>perl -i.bak -n -e 's/img src=\"image\.gif\"/img src=\"\/Images\/image\.gif\"/g' file.html</tt>
<p> cheers,
<br> Don
<br> <i>striving for <a href="http://prometheus.frii.com/~gnat/yapc/2000-stages/">Perl Adept</a></i>
<br> <font size="-2">(it's pronounced "why-bick")</font>