On 1/16/2006 7:25:39 PM, Ian Binnie wrote:
>On 1/16/2006 7:08:31 PM, Ian Binnie
>wrote:
>"The ampersand (&), pipe (|), and
>parentheses ( ) are special characters
>that must be preceded by the escape
>character (^) or quotation marks when
>you pass them as arguments."
>
>So:-
>-c`R('^|^<','L="',ALL)
>R('^|N','"^|N',BEGIN+ALL)`
>
>Becomes:-
>-c`R('|<','L="',ALL)
>R('^|N','"|N',BEGIN+ALL)`
The above worked (at least under XP, but not 98). The need to use the escape character ^ seemed a bit arbitrary.
I did some further experimentation, and came up with the following which seems to work under both OS.
-c"R('|<','L=|H22',ALL) R('|L','|H22|N',BEGIN+ALL) XALL"
The trick seems to be it use double quotes around the command string (single quotes did not work).
I needed to use |H22 for quotes within the string, but this is a lot easier to read.
|
|