Find By Contents
Date : August 11, 2004
This will recursively search all the files, with a certain filename pattern (in this case *.h) in a certain directory, that contains a certain text pattern in its contents (in this case ‘DeviceDriver’).
find . -name '*.h' -print0 | xargs -0 grep -n -e DeviceDriver
Tags:
Linux