$ find /PATH/TO/DIRECTORY/ -type f -print | xargs grep 'hoge'Then can search files including 'hoge' string.
Find files including certain string
I often use this but always forget so write the memo here.
-type f is to search with file name
ReplyDeleteOr you can use -type d to search with folder name.
I also tend to forget it so comment here just to memorise :D