FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gitdm/find.sh at master · cncf/gitdm · GitHub
cncf
/
gitdm
Public
Notifications
You must be signed in to change notification settings
Fork
958
Star
83
Code
Issues
3
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gitdm
/
find.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
17 lines (17 loc) · 417 Bytes
Breadcrumbs
gitdm
/
find.sh
Copy path
File metadata and controls
executable file
·
17 lines (17 loc) · 417 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!
/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
Back
|
FazBrowse Home
|
New Git URL