Good solution, but you could run into trouble if the resulting command line is bigger than the maximum size supported by the OS.
If there are a lot of files to be checked, then it could be the case to check them one by one. So I'd slightly modify your command line this way:
find . -type f -exec grep -Hl {} \;Update: grep here is the GNU grep
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz
In reply to Re: Re: Find file that contains "....." (command in Unix)
by bronto
in thread Find file that contains "....." (command in Unix)
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |