関数名を探していますが、フォルダ構造も深く、見るファイルも多いです。
一般的に私はこのようなものを選択しますが、find * | grep functionname
これが最善のアプローチですか?
ベストアンサー1
$ find . -type f -print0 | xargs -0 grep foo
$ grep -r foo . # GNU grep only
そしてzsh
、setopt extendedglob
$ grep foo **/*(.)
関数名を探していますが、フォルダ構造も深く、見るファイルも多いです。
一般的に私はこのようなものを選択しますが、find * | grep functionname
これが最善のアプローチですか?
$ find . -type f -print0 | xargs -0 grep foo
$ grep -r foo . # GNU grep only
そしてzsh
、setopt extendedglob
$ grep foo **/*(.)