Searching for text in files with Linux

Posted by Dark Training on June 19, 2008 tags: | bash | linux

Searching for text inside many files is really easy when you are using linux.

To search for text inside a given file use:

grep "some word" filename.extension

To search for a string in multiple files in linux use the following command:

grep -r "some word" *

You can also substite the wildcard with just *.extension or file.*