oplaTech About Teaching Archive
Oplatek's external memory

Searching within the files cat, find, grep

Greping and also printing the file name for a lot of files


-H prints the filename of search documents

find . -type f -exec grep -H maps {} \;

This searches all files in current directory for word maps.

Obvious alternative is to find the files and use for loop to grep it.