1,替换本件中的指定内容
#sed -i "s/abcdefg/xyz/g" a.txt //把a.txt中abcdefg 替换成xyz
(g代表全局,s 后面的也可以写为#)
sed -i "s#abcdefg#xyz#g" a.txt