【mac】テキスト文字列検索【コマンド】

全文検索(ファイル内)

$ mdfind -onlyin ~/ "検索文字列"

ファイル名

$ mdfind -only in ~/ -name "検索文字列"