sed -i 's#a#b#g' test.txt 将test.txt中a替换为b,s为替换,g为全局替换 转载于:https://www.cnblogs.com/zhutao-niuniu2014/p/10865076.html