2011-02-11 112 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