Reputation: 46909
What is the perl command line on linux to find and replace a text.I want to search
<?php echo "Testing"; ?>
I want to replace above with <?php echo "Production"; ?>
Upvotes: 0
Views: 405
Reputation: 98388
perl -pi -we's/\Q<?php echo "Testing"; ?>/<?php echo "Production"; ?>/g' file ...
Upvotes: 6