|Do you know where your variables are?|
(code) Re: (4) in-place edit, regex, one-liner (Mo' Betta)by ybiC (Prior)
|on Nov 24, 2000 at 03:52 UTC||Need Help??|
I like it, thanks chromatic. May I throw a slight curve in the fairway?
perl -i.bak -pe 's!(img src=")(\w+?\.(gif|jpg|jpeg|png)")!$1/Images/$2!g' *.html
Update: The above one-liner was tweaked, and now works.
And saves original files as ".bak".
striving for Perl Adept
(it's pronounced "why-bick")