perl -i.bak -pe 's/img src=\"image\.gif\"/img src=\"\/Images\/image\.gif\"/g' file.html
Here's that syntax sans toothpicks:
perl -i.bak -pe 's///g' *.html
cheers,
Don
striving for Perl Adept
(it's pronounced "why-bick")
In reply to Re: (2) in-place edit, regex, one-liner (perl -i.bak -pe)
by ybiC
in thread in-place edit, regex, one-liner
by ybiC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |