I'm trying to use the following command to do a batch find and replace in all commonly named files through a file hierarchy
Code:
find . -name 'file' |xargs perl -pi -e 's/find/replace/g'
which works fine except for a substitution involving parenthesis.
As a specific example I'm trying to sub "G(d)" with "G('d,'p)."
The interpreter seems to just ignore the parentheses and not finding the string "Gd" simply does nothing. I can't just find/replace "d" as the character appears throughout the file.
Any help?