Rajeev
Rajeev

Reputation: 46909

perl find and replace

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

Answers (1)

ysth
ysth

Reputation: 98388

perl -pi -we's/\Q<?php echo "Testing"; ?>/<?php echo "Production"; ?>/g' file ...

Upvotes: 6

Related Questions