A
Ansim
Hello,
I have this oneliner
$_PERL -ni -we 'BEGIN{@content='$_new_start'} if(/'$_start'/){s//
@content/;print}else{print}' SMOinfo.xml
where $_start is <Action name="abc" id="_XX_"> , a xml pragma, and
$_new_start is <!-- <Action.....>, same xml pragma but with comment
marks first.
When this oneliner is executet i receives this error:
"Unterminated <> operator at -e line 1.
I've tried several settings in the @content='$_new_start' statement,
everyone failing with different error codes.
Tried to change the ' to ` or " or "' or ´ and without.
The idea is to, in a script, auto magically comment out Action
settings in the xml file, if they are commented in another file.
The one liner is executet once more and end the comment with
$_PERL -ni -we 'BEGIN{@content='$_new_end'} if(/'$_end'/){s//
@content/;print}else{print}' SMOinfo.xml
where $_end="</Action name="abc" id="_XX_">", $_new_end="</Action
id="_XX_"> -->"
Any suggestions on how to solve this?
BR
//Anders
I have this oneliner
$_PERL -ni -we 'BEGIN{@content='$_new_start'} if(/'$_start'/){s//
@content/;print}else{print}' SMOinfo.xml
where $_start is <Action name="abc" id="_XX_"> , a xml pragma, and
$_new_start is <!-- <Action.....>, same xml pragma but with comment
marks first.
When this oneliner is executet i receives this error:
"Unterminated <> operator at -e line 1.
I've tried several settings in the @content='$_new_start' statement,
everyone failing with different error codes.
Tried to change the ' to ` or " or "' or ´ and without.
The idea is to, in a script, auto magically comment out Action
settings in the xml file, if they are commented in another file.
The one liner is executet once more and end the comment with
$_PERL -ni -we 'BEGIN{@content='$_new_end'} if(/'$_end'/){s//
@content/;print}else{print}' SMOinfo.xml
where $_end="</Action name="abc" id="_XX_">", $_new_end="</Action
id="_XX_"> -->"
Any suggestions on how to solve this?
BR
//Anders