sed

sed, a stream editor

使用举例:

官方文档: https://www.gnu.org/software/sed/manual/sed.html

Mac 的 sed 和 Linux 不同,直接安装 gnu-sed brew install gnu-sed 然后 alias sed=gsed

配合 find : find ./ -name "*.go" sed -i 's/aaa/bbb/g' {} \;

First created: 2017-12-04 11:37:43
Last updated: 2022-12-11 Sun 12:49
Power by Emacs 29.0.91 (Org mode 9.6.6)