in reply to Re: Perl command line search and replace
in thread Perl command line search and replace

So if we are writing a simple script (I am assuming the script's name is test.pl):

s{\Qhttp://www.mydomain.com/script.pl?key=3\E} {http://www.mydomain.com/script.pl?key=4}

filename we are changing is called web.sh

Would I write it from the command line like the following:

perl test.pl web.sh

  • Comment on Re^2: Perl command line search and replace

Replies are listed 'Best First'.
Re^3: Perl command line search and replace
by Anonymous Monk on Jun 28, 2011 at 17:54 UTC