2011-02-11 139 views
0

什麼是Linux perl的命令行查找和替換text.I要搜索perl的查找和替換

<?php echo "Testing"; ?> 

我想與<?php echo "Production"; ?>

回答

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

`\ Q`上述取代不需要用'\ E`來終止? – 2011-02-11 08:55:19