[vox-tech] Using awk or perl to find and replace
Trevor M. Lango
tmlango at member.aiche.org
Wed Nov 24 11:47:18 PST 2004
On Wednesday 24 November 2004 10:20, Mitch Patenaude wrote:
> 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
Absolutely perfect! Thanks!
> (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
>
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
More information about the vox-tech
mailing list