Showing posts with label find. Show all posts
Showing posts with label find. Show all posts

Wednesday, September 15, 2010

Grep Selected Files

You can use find and grep to search for a particular string (string_pattern) in a selection of files:

> find <dir> -name "<file_find_pattern>" -exec grep -H -n '<string_pattern>' {} \;