1. 查找secret 函数所在的文件位置
grep -rn secret *
grep -rn “secret” *
2. find 查找当前目录下,比while2 时间新并且名字是以下划线开头的文件:
find . \( -name “_*” -and -newer while2 \) -type f -exec ls -l {} \;
find . \( -name “p590*” \) -type f -exec ls -l {} \;
***** xargs配合grep查找
find -type f -name ‘*.php’|xargs grep ‘secret’