使用mac做sed -i 文本替换的报类似如下的错 

sed: 1: "xx-pz5xgdh074rmgpj7gbv ...": extra characters at the end of l command


原因:unix与linux在执行sed有些区别

解决方式:

sed -i "" "s#10.1#20.11#g" ip.txt