in reply to Re: Find file that contains "....." (command in Unix)
in thread Find file that contains "....." (command in Unix)
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Find file that contains "....." (command in Unix)
by Abigail-II (Bishop) on Mar 28, 2003 at 09:49 UTC | |
by bronto (Priest) on Mar 28, 2003 at 10:09 UTC |