in reply to Re: (2) in-place edit, regex, one-liner (perl -i.bak -pe)
in thread in-place edit, regex, one-liner
I think you can cut that down a bit.
perl -pe -i.bak 's!(img src=")(image\.gif")!$1/Images/$2!g' *.html
(I haven't tested it, but I think it's okay.)
|
---|
Replies are listed 'Best First'. | |
---|---|
(code) Re: (4) in-place edit, regex, one-liner (Mo' Betta)
by ybiC (Prior) on Nov 24, 2000 at 03:52 UTC |
In Section
Seekers of Perl Wisdom