2015-09-19 33 views

回答

3

你可以試試這個方法也

find -iname "header.php" -exec sed -i '/ASDF1234/d' {} \; 

說明:

find -iname "header.php" - It will find all header.php files 
    -exec      - Execute the sed command and passing the argument for all the header.php files 
    sed -i '/ASDF1234/d'  - If the /ASDF1234/ content match delete the line. 
+0

-iname是什麼? – MattPL

+0

看'find'的man page ..也是解釋 – Kalanidhi

+0

現在我明白了。非常感謝。非常棒! – MattPL