How can I:
- Search for a particular pattern in the content of files in a directory and its subdirectory
- And list the filename if it has particular pattern?
grep -l -r pattern
-l, --files-with-matches Suppress normal output; instead print the name of each input file from which output would normally have been printed. The scanning will stop on the first match. (-l is specified by POSIX .)
-R, -r, --recursive Read all files under each directory, recursively; this is equivalent to the -d recurse option.