Diamonds are forever. Exec problems too.
From: Luciano ES (me_at_privacy.net)
Date: 10/30/03
- Next message: Luciano ES: "Re: using tkdiff on PC"
- Previous message: R. T. Wurth: "Is this how [concat] really works?"
- Next in thread: Pacalou: "Re: Diamonds are forever. Exec problems too."
- Reply: Pacalou: "Re: Diamonds are forever. Exec problems too."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 02:04:12 -0200
set myQuery "no meta characters"
set myResult [ exec sed -r "/$myQuery/I!d" d:/myfile.txt ]
# exec command becomes: sed -r "/no meta characters/I!d" d:/myfile.txt
set myQuery "some \s space"
set myResult [ exec sed -r "/$myQuery/I!d" d:/myfile.txt ]
# exec command becomes: sed -r "/some {\s} space/I!d" d:/myfile.txt
# WHAT???
set myQuery "XPCOM\.dll"
set myResult [ exec sed -r "/$myQuery/I!d" d:/myfile.txt ]
# exec command becomes: sed -r "/{XPCOM\.dll}/I!d" d:/myfile.txt
# WHERE DID THOSE CURLY BRACES COME FROM?
Good grief... Thank you for your infinite patience and another round of
enlightening advice.
-- Luciano ES WARNING: fake address on reply! <lucianoav@ggmmxx.nneett> (domain is obfuscated) Santos, SP - Brasil
- Next message: Luciano ES: "Re: using tkdiff on PC"
- Previous message: R. T. Wurth: "Is this how [concat] really works?"
- Next in thread: Pacalou: "Re: Diamonds are forever. Exec problems too."
- Reply: Pacalou: "Re: Diamonds are forever. Exec problems too."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]