Why are you using the /e switch? This makes Perl think that you want to see the "replacement" part of s/// as a Perl expression. You likely want:
perl -pi.bak -e 's/site.type=standby/site.type=production/gi' /usr/loc +al/jboss/conf/environment.properties
In reply to Re: substitution using perl -pi -e
by Corion
in thread substitution using perl -pi -e
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |