2011-10-08 78 views

回答

1
sed 's/word1/word2/g' file.php 

打印出更改后的文件版本。如果要在原地修改文件,请使用-i选项:

sed 's/word1/word2/g' -i file.php 
相关问题