Ok i will try that but i also finded one solution which works but it seems it requires to put slash before each character so i am little confused.
Here is working code:
perl -pi -w -e 's/BABA//g;' *.php
This replace all text called BABA to nothing.If i put
perl -pi -w -e 's/BABA/RABA/g;' *.php
all BABA text is replaced to RABA.
But it seems if you have special characters then you need to put slash,and that make entire thing little complicated.I finded that at this url:
http://www.liamdelahunty.com/tips/li...iple_files.php
I tried this one:
perl -pi -w -e 's/\<\?php\virtual\(\'\/cgi\-bin\/atx\/in\.cgi\'\)\;\?\>//g;' *.php
But it seems i missed something since it doesnt work.
Update:I finded what causing problem,it is this '
For some reason that blocks execution of command,probaly beacuse it have other meaning in that command.It seems i will have to find another solution for replacing text everytime when i encounter '
Update2:actualy i finded solution by simply replacing ' with " and it worked.This is how code should look:
perl -pi -w -e "s/\<\?php virtual\('\/cgi\-bin\/atx\/in\.cgi'\)\;\?\>//g;" *.php