I am using the below single line command for replacing words
perl -i -p -e 's/old/new/g;' *.config
which works fine for normal string. However if i want to replace a string with special characters like below it doesn't work.
perl -i -p -e 's/{{'TEXT' | translate}}/{{'TEXT.T.D' | translate}}/g;' *.config
oldText will be like = {{'TEXT' | translate}}
New text will be like = {{'TEXT.T.D' | translate}}
s/\Q{{'TEXT' | translate}}/../check perldoc -f quotemeta=>eval.in/790023