sed and quoting issue
- From: trighole <fabrice.bernardgranger@xxxxxxxxx>
- Date: Wed, 11 Aug 2010 05:08:01 -0700 (PDT)
Hello,
I'd like to execute it:
sed -e "s#\(^\.INCLUDE[ \t]*\"\).*\(noMisMatch\)#\1$MODEL_DIR\2#g"
totoFile > titiFile
The problem is coming from \" which generate an error.
The first pattern i would like to catch is: .INCLUDE " which is in
regexp \(^\.INCLUDE[ \t]*\"\), but " is generated problem with sed
if i use single quote like this
sed -e 's#\(^\.INCLUDE[ \t]*\"\).*\(noMisMatch\)#\1${MODEL_DIR}\2#g'
totoFile > titiFile
I do not have problem to catch " but the $MODEL_DIR is not substitute
by the righ value.
can yoiu help me.
regards,
fabrice
.
- Follow-Ups:
- Re: sed and quoting issue
- From: Ed Morton
- Re: sed and quoting issue
- Prev by Date: Re: Symbol for "not" within []
- Next by Date: Re: sed and quoting issue
- Previous by thread: $RANDOM
- Next by thread: Re: sed and quoting issue
- Index(es):
Relevant Pages
|