[Sed] find multi file and delete line which contain specific word Posted by Keep Growing on 凌晨1:36 in Linux / No comments find . -name "*.c" -print0 -o -name "*.cpp" -print0 -o -name "*.h" -print0 | xargs -0 sed -i '/GOGO - Debug -/d' Reference: Using sed to replace text from a list of files from find [Vim] How to delete the line include specific string Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook
0 意見:
張貼留言