Re: A Tricky quoting problem
From: Peter J. Acklam (pjacklam_at_online.no)
Date: 05/30/04
- Next message: Dave Sharpe: "Re: ksh script question"
- Previous message: Alon: "Re: A Tricky quoting problem"
- In reply to: Alon: "Re: A Tricky quoting problem"
- Next in thread: rakesh sharma: "Re: A Tricky quoting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 May 2004 16:20:33 +0200
"Alon" <noSpam@hotmail.com> wrote:
> It worked for you because you did "set backslash_quote" before
> running the command. Try the following:
>
> > unset backslash_quote
> > set backslash_quote ; alias catXML 'cat \!* | sed -e \'s/[ ]*["][ ]*/ABC/g\''
Ah, of course. I messed up. The change of "backslash_quote" does
not take effect that early.
But what's the problem? Can't you just set "backslash_quote"
somewhere once and for all?
You could also use ksh/bash/etc.:
alias catXML='sed -e "s/[ ]*[\"][ ]*/ABC/g"'
Peter
-- Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam
- Next message: Dave Sharpe: "Re: ksh script question"
- Previous message: Alon: "Re: A Tricky quoting problem"
- In reply to: Alon: "Re: A Tricky quoting problem"
- Next in thread: rakesh sharma: "Re: A Tricky quoting problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|