~ overflow ~

(just) Find in files (bash)

by z3n on Dec.09, 2009, under Linux Happyness, Tips & Hints

Problem:

Need to search for a string in many files and return the filenames.

Solution:

find -depth -name *.file_extension | xargs grep -sl “string

:, , ,


No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!