Does your command line work without being wrapped in Perl?
rsh sdp2 perl -pi -e 's\/^(command\.package)\=(\\S+)\/\"\$1\=1.0.0.0\" +\/gei' $ENV{JBOSS_HOME}/install/version.properties
I'd bet you have a quoting/interpolation issue, and getting it to work without being wrapped in a Perl system call might get you on your way.
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}
In reply to Re: substituting a regular expression in a file
by chargrill
in thread substituting a regular expression in a file
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |