天天看點

替換目錄下所有檔案内容

 sed -i "s/abc/123/g" `grep abc -rl ./`

-i 表示inplace edit,就地修改檔案

-r 表示搜尋子目錄

-l 表示輸出比對的檔案名