Instantly share code, notes, and snippets.
sed -i 's/原有字符/被替换字符/' /xxx/xx.conf
-i 参数表示进行insert操作,也就是对文件直接操作,否则的话是修改之后打印出文件。