[plug] sed - syntax problem ???

Kirk Turner gameldar at gmail.com
Fri Jun 15 20:57:31 WST 2007


On 6/15/07, Arie Hol <arie99 at ozemail.com.au> wrote:
>
> I am learning to use sed on my Windows box (part of the Gnu Utilities
> package for Windows)
Yes I love sed too. Very useful tool.
> sed -ie s/_uacct = "UA-288334-4";//     *.html

Are you running that exact command (cut and paste) on the command
line? If so then the semicolon will terminate the command at that
point - hence no terminating slash for the sed expression.

You can try quoting the whole lot:

sed -ie "s/_uacct = \"UA-28833404\";//" *.html

That should hopefully fix what you are seeing.

Kirk



More information about the plug mailing list