shell 脚本替换文件中某个字符串
摘要:
1、将当前目录下包含jack串的文件中,jack字符串替换为tomsed -i "s/jack/tom/g" `grep "jack" -rl ./`2、将某个文件中的jack字符串替换为tomsed -i "s/jack/tom/g" test.txt原文地址:http://blog.csdn.net/lizhi200404520/article/details/7968483 阅读全文
posted @ 2013-07-19 17:32 albert1017 阅读(421) 评论(0) 推荐(0) 编辑