sed -i 's/abc/xxx/g' fileabc修改前的字符串xxx是修改后的字符串file是要被修改的文件 转载于:https://www.cnblogs.com/shijiaoyun/p/4745974.html