On Tue, 21 Oct 2003, jason dictos wrote:

>    I've always used grep text /*/*/* to recursivly search directories for
> files with the specified text string in them, however this method doesn't
> always work very well (sometimes it bails out halfway through with error
> "Argument list too long").
>
> Is there a more effective way to search the contents of files?

Try:

     find /whateverdirectory -type f -print | xargs grep mysearchstring

Cheers,

Viktor
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to