Re: A Tricky quoting problem

From: Alon (noSpam_at_hotmail.com)
Date: 05/30/04


Date: Sun, 30 May 2004 11:52:50 +0300

Thanks alot!

I didn't know about the set backslash_quote
That solved the problem.

"Peter J. Acklam" <pjacklam@online.no> wrote in message
news:lljae2fk.fsf@online.no...
> "Alon" <noSpam@hotmail.com> wrote:
>
> > The following does not work:
> > alias catXML "cat \!* | sed -e 's/[ ]*["][ ]*/ABC/g' "
> >
> > I want that eventually:
> > catXML= cat \!* | sed -e 's/[ ]*["][ ]*/ABC/g'
>
> How about
>
> > alias catXML 'cat \!* | sed -e "s/[ ]*[\"][ ]*/ABC/g"'
> > alias catXML
> cat !* | sed -e "s/[ ]*["][ ]*/ABC/g"
>
> or, with tcsh,
>
> > set backslash_quote
> > alias catXML 'cat \!* | sed -e \'s/[ ]*["][ ]*/ABC/g\''
> > alias catXML
> cat !* | sed -e 's/[ ]*["][ ]*/ABC/g'
>
> Peter
>
> --
> Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam