Searching contents of files

Kevin D. Kinsey, DaleCo, S.P. kdk at daleco.biz
Wed Oct 22 00:10:59 PDT 2003


jason dictos wrote:

>Hi All,
>
>   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?
>
>Thanks,
>-Jason
>  
>

$grep -r text *

Kevin Kinsey
DaleCo, S.P.



More information about the freebsd-questions mailing list