[Cialug] Find Files with String

Todd Walton tdwalton at gmail.com
Fri Dec 11 11:04:18 CST 2009


On Fri, Dec 11, 2009 at 10:51 AM, Josh More
<morej at alliancetechnologies.net> wrote:
> Yep.
>
> grep -r "string" /

The problem there is that it prints the matched lines as well.  I want
just the names.

I could put that output into cut though.  That's it!

grep "string" * | cut -d: -f1 -s

--
Todd


More information about the Cialug mailing list