sed -i 's/abc/xxx/g' file

abc修改前的字符串
xxx是修改后的字符串
file是要被修改的文件

 

posted on 2015-08-20 18:02  何石-博客  阅读(8295)  评论(1编辑  收藏  举报