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-08-23 Tue 18:22
Power by Emacs 27.1 (Org mode 9.5.4)