Re: A Tricky quoting problem
From: Alon (noSpam_at_hotmail.com)
Date: 05/30/04
- Next message: Alon: "Re: A Tricky quoting problem"
- Previous message: Peter J. Acklam: "Re: A Tricky quoting problem"
- In reply to: Peter J. Acklam: "Re: A Tricky quoting problem"
- Next in thread: Alon: "Re: A Tricky quoting problem"
- Reply: Alon: "Re: A Tricky quoting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Alon: "Re: A Tricky quoting problem"
- Previous message: Peter J. Acklam: "Re: A Tricky quoting problem"
- In reply to: Peter J. Acklam: "Re: A Tricky quoting problem"
- Next in thread: Alon: "Re: A Tricky quoting problem"
- Reply: Alon: "Re: A Tricky quoting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]