我有有一個像冗餘鏈路子文件夾中的幾個HTML文件:如何從linux中的多個文件中刪除特定的行?
<link rel="stylesheet" href="../demos.css">
我試圖在Linux中使用以下命令來刪除所有的HTML文件,該行:
find -name '*.html' -exec sed --in-place=.bak 'demos.css' "{}" ;
但這給了我以下錯誤:
find: missing argument to `-exec'
是的,當然,我已經檢查了有關此b的Stackoverflow上的所有解決方案其中大部分都是關於單個文件,其餘都沒有幫助。我在做什麼錯誤的代碼?
檢查這個 http://stackoverflow.com/questions/11245144/replace-whole-line-containing-a-string-using-sed – candymanuu 2015-02-23 14:59:03