in reply to Re: 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.
Of course, you will only run into trouble if your xargs is broken. The point of using xargs is to avoid the problem you are describing.
The disadvantage of using -exec is that find will spawn a grep process for each file found, while with the use of xargs, far less processes will be spawned.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Find file that contains "....." (command in Unix)
by bronto (Priest) on Mar 28, 2003 at 10:09 UTC |