I\'m using perl on windows and am trying to do a one liner using perl to substitute a placeholder in a file using a windows variable that contains a dollar sign. Does anyone kno
Use ' as regexp delimeter symbol. It will disable all variable substitution:
'
perl -p -i.bak -e "s'!MYPASSWORD!'%NEWPASSWORD%'g" a.properties