|
@@ -236,9 +236,8 @@ function findByName() {
|
|
find . -name "*$pattern*"
|
|
find . -name "*$pattern*"
|
|
}
|
|
}
|
|
function findByContent() {
|
|
function findByContent() {
|
|
- local pattern=$2
|
|
|
|
- local dir=$1
|
|
|
|
- find $dir -type f -exec grep -l "$pattern" {} +
|
|
|
|
|
|
+ local pattern=$1
|
|
|
|
+ find . -type f -exec grep -l "$pattern" {} +
|
|
}
|
|
}
|
|
|
|
|
|
# 备份
|
|
# 备份
|