2011-10-08 74 views

回答

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

打印出更改後的文件版本。如果要在原地修改文件,請使用-i選項:

sed 's/word1/word2/g' -i file.php 
相關問題