I need to replace the text in all files in one of my folders, and I use Perl, but I get an error.
This is what I run:
perl -pi.bak -e 's/<START>/<url><loc>http://www.mysite.com/page//g' *
Basically, I just need to replace
<START>
with this:
<url><loc>http://www.mysite.com/page/
And this is the error I get:
Illegal division by zero at -e line 1, <> line 1.
Can someone tell me what should i do? I also tried several other methods, but nobody seems to work ... I really need this to be done through the command line, so that it is faster because there are more than ten million lines. Thanks!
source share