Nerd Alert: the find and grep I love the most

find . -name "*.*" -exec grep -H "needle in a haystack" {} \;

This find the search pattern and outputs the file name and the line with found search pattern.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *