PDA

View Full Version : Linux: How to Find in files, find files containing certain phrasse/content



Fli
06-26-2013, 01:22 PM
You need to find files containing certain phrasse? Here is how:


find . -type f -exec grep -i YOURPHRASSEHERE '{}' \; -print

If you search some sentence with spaces, add "" around the search phrasse.

find . means it will start search in current directory and search all subdirectories
find / will search whole file system