Re: A Tricky quoting problem

From: Peter J. Acklam (pjacklam_at_online.no)
Date: 05/30/04


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


Relevant Pages

  • Re: make buttons invisible
    ... I right clicked on my command ... Peter, thank for writing again. ... Dim intHeight As Integer ... .FirstRecord = wdDefaultFirstRecord ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Command button continues to be visible!
    ... As I mentioned I have unprotected the sheet. ... "Peter T" wrote: ... But I tried the same by placing a new command button and tried and the ...
    (microsoft.public.excel.programming)
  • Re: Pci.sys missing or corrupt...(Ive tried everything)
    ... Slight correction, peter. ... For security purposes the default setings for the Recovery Console do not allow users to browse folders other than the root and system folders. ... ALLOWALLPATHS = TRUE removes this restriction and permits the user to browse the entire drive and permits access to all files and folders on the drive. ... For the allowallpaths = true to work the SET command for the Recovery Console must be already enabled, the SET command is enabled in the Security Policy. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Settling a food fight?
    ... Peter, it appears that you need to take action on the mv.E side.  ... PUT does not convert the mv.ENTERPRISE file items to Unix-file ... If a pre-selected list of items is to be copied, the PUT command must ... It sounds as if I need to look again at logging on the NFS host, if AIX ...
    (AIX-L)
  • Re: Command button continues to be visible!
    ... Are your sure the button is named "alfa", I don't mean as seen in the names ... "Peter T" wrote: ... But I tried the same by placing a new command button and tried and the ...
    (microsoft.public.excel.programming)