全局搜索目录

全局查找文件中的固定 单词 数字 字符等
#find . -type f | xargs grep -l ‘zabbix’

全局搜索 文件
#find -name yum-repo.sh
#locate yum

替换文件中的木个具体字符
#sed -i “s/A/B/g” grep "A" -rl path
A:要替换的字符A
B:替换成字符B
path: 需要替换的文件路径。

猜你喜欢

转载自blog.csdn.net/weixin_43466725/article/details/88990824
今日推荐