[Cialug] Find Files with String

Josh More morej at alliancetechnologies.net
Fri Dec 11 10:51:13 CST 2009


Yep.

grep -r "string" /

Expect it to take a while and IO to spike.



-Josh More, RHCE, CISSP, NCLP, GIAC 
 morej at alliancetechnologies.net 
 515-245-7701

>>> David Champion <dave at dchamp.net> 12/11/09 10:46 AM >>>
grep???

-dc

Todd Walton wrote:
> Can anyone suggest a bash one liner to find all text files that have a
> certain string in them and print the names?
>
> I've been playing around with 'for-do-done', but I'm wondering now if
> maybe 'find' might be better.
>
> --
> Todd
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>   

_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list