1 Star 0 Fork 0

CNCF/gitdm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
find.sh 417 Bytes
一键复制 编辑 原始数据 按行查看 历史
Łukasz Gryglicki 提交于 2023-03-30 15:53 +08:00 . Copy archive state from 3/3/2023
#!/bin/bash
if [ -z "$1" ]
then
echo "You need to provide path as first argument"
exit 1
fi
if [ -z "$2" ]
then
echo "You need to provide file name pattern as a second argument"
exit 1
fi
if [ -z "$3" ]
then
echo "You need to provide regexp pattern to search for as a third argument"
exit 1
fi
find "$1" -type f -iname "$2" -not -name "out" -not -path '*.git/*' -exec grep -EHIn "$3" "{}" \; | tee -a out
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cncf/gitdm.git
git@gitee.com:cncf/gitdm.git
cncf
gitdm
gitdm
master

搜索帮助