grep 用法
1.在所在目录下查找包含temporary关键字的sh脚本
find -type f -name '*.sh'|xargs grep -i 'temporary'
2.grep常用参数(待补充)
不区分大小写
grep -i 'a'
反向查找不包含
grep -v 'a'
查找多个关键字
grep -E 'a|b'
参考
https://blog.csdn.net/fanxianchao_2012/article/details/109879554
find -type f -name '*.sh'|xargs grep -i 'temporary'
不区分大小写
grep -i 'a'
反向查找不包含
grep -v 'a'
查找多个关键字
grep -E 'a|b'
https://blog.csdn.net/fanxianchao_2012/article/details/109879554