[vox-tech] Using awk or perl to find and replace
Mitch Patenaude
mrp at sonic.net
Wed Nov 24 10:20:53 PST 2004
On Nov 24, 2004, at 10:15 AM, Mitch Patenaude wrote:
> perl -pi.orig -e 's/h.(.*?).([Jj][Pp][Gg])/$1.h.$2/g;' *.html
oops.. that should be
perl -pi.orig -e 's/h\.(.*?)\.([Jj][Pp][Gg])/$1.h.$2/g;' *.html
(forgot to escape the literal periods. This is why my mom detests
regex... it ends up looking an awful lot like old serial line noise.
;-)
-- Mitch
More information about the vox-tech
mailing list