sed: 1: "xxxxx": extra characters at the end of g command----sed on mac
1、场景:
在mac上,使用sed命令把当前目录的test.sql文件内容中的a替换为b,使用命令:sed -i “s/a/b/g” test.sql
遇到报错:sed: 1: “grep …”: extra characters at the end of g command
2、解决:
在mac中使用sed命令在-i参数后面需要带一对双引号"",正确格式如下:
sed -i “” “s/a/b...
转载
2019-05-29 09:34:25 ·
1672 阅读 ·
0 评论