Reputation: 8473
I'm using the following command:
perl -pi -w -e 's/EmployeeDataModel/EmployeeData/g;' *.java
This changes stuff like:
class EmployeeDataModel to class EmployeeData
However, when taking stuff like:
class="EmployeeDataModel"
It doesn't seem to do anything.
Is there any solution against this?
Upvotes: 0
Views: 184
Reputation: 12042
Are you actually sure ? Here is my first file :
$ cat perl_test
class EmployeeDataModel
class="EmployeeDataModel"
Now with your perl replacement :
$ cat perl_test | perl -pi -w -e 's/EmployeeDataModel/Test/g'
class Test
class="Test"
You must have done something wrong, maybe a typo in your string content, or something like that.
Upvotes: 2