标签:字段 dir nbsp new string include bsp 批量替换 you
1、全文查找指定字符串
grep -rn ‘http://new.shirbility.cn‘ . --include=*.php
2、redis批量删除指定keys
redis-cli keys "scene_event*" | xargs redis-cli del
3、linux批量替换指定字符
格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径`
linux sed 批量替换多个文件中的字符串
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir`
grep -rl matchstring yourdir | xargs sed -i ‘s/oldstring/newstring/g‘
标签:字段 dir nbsp new string include bsp 批量替换 you
原文地址:http://www.cnblogs.com/linchv587/p/7922092.html