Luke Bakken wrote:

> Rather than calling
> 
> egrep REGEX really long list of files ...
> 
> they should be calling (ksh here, use "echo" instead of "print" for other
> shells):
> 
> print really long list of files | xargs egrep REGEX

IMO, they should be using glob and coding the grep themselves in Perl. 
In addition to items mentioned earlier (faster, safer), it's also more
portable.  Imagine that the code needed to be moved from BSD or Linux
or other unix-like OS to, say, Mac OS X, or worse, Windows. 
Portability can be a concern as much as anything else (my #1 concern as
my code must run on about a dozen different OS's).

And, of course, it'll also work on directories with more files than the
shell can handle on its commandline.  ;->

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to