Skip to content

Instantly share code, notes, and snippets.

@Twwy
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twwy/38eb83e5025c2cefe55b to your computer and use it in GitHub Desktop.
Save Twwy/38eb83e5025c2cefe55b to your computer and use it in GitHub Desktop.
sed命令
sed -i 's/原有字符/被替换字符/' /xxx/xx.conf

-i 参数表示进行insert操作,也就是对文件直接操作,否则的话是修改之后打印出文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment