find . -type f -print0 | xargs -0 grep -l
The advantage of using grep -l is that the -l option makes grep print the file name of the file that matches (instead of the matching line), and grep will stop looking in the file after the first match.
Abigail
In reply to Re: Find file that contains "....." (command in Unix)
by Abigail-II
in thread Find file that contains "....." (command in Unix)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |