M
Martin Kristensen
I'm trying to replace some text in some txt-files with a perl call
like this...
perl -pi -e "s/brad(.+?)bill/brian$1bob/gm;" *.txt
This should replace "brad123bill" by "brian123bob" - but instead I
just get "brianbob". What's wrong? Probably something with the $1
variable, but what?
Regards
Martin
like this...
perl -pi -e "s/brad(.+?)bill/brian$1bob/gm;" *.txt
This should replace "brad123bill" by "brian123bob" - but instead I
just get "brianbob". What's wrong? Probably something with the $1
variable, but what?
Regards
Martin