2014年10月22日

linux下批量替换文件内容

摘要: 1、网络上现成的资料 格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径` linux sed 批量替换多个文件中的字符串 sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir` 例如:... 阅读全文

posted @ 2014-10-22 16:23 cn三少<script></script> 阅读(246) 评论(0) 推荐(0) 编辑

导航