The Easiest Way to Save and Share Code Snippets on the web

Recursively search all files in a folder including subdirectories for a string

bash

posted: May, 27th 2012 | jump to bottom

find /path/to/dir -type f | xargs grep -l "foo"
68 views