note
ybiC
I like it, thanks [chromatic]. May I throw a slight curve in the fairway?
<br>A quick dig in [isbn://1565922573|The Owl] leads me to think something like this will match reference <i>any image of alphanumeric name</i>. How close am I?
<p>
<code>perl -i.bak -pe 's!(img src=")(\w+?\.(gif|jpg|jpeg|png)")!$1/Images/$2!g' *.html</code>
<p>
<b>Update: </b> The above one-liner was tweaked, and now works.
<p>
Changes this:
<code><img src="12345.gif">
<img src="1b3e5.jpg">
<img src="1B3Df.jpeg">
<img src="abcde.png"></code>
<br> To this:
<code><img src="/Images/12345.gif">
<img src="/Images/1b3e5.jpg">
<img src="/Images/1B3D5.jpeg">
<img src="/Images/abcde.png"></code>
And saves original files as ".bak".
<br> 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>
43168
43175