How to search for text inside files in Linux
Posted Mon, 01/25/2010 - 1:57pm
To search for a text pattern in files in linux, do the following:
find / -type f -print0 | xargs -0 grep -i 'your pattern'
Posted Mon, 01/25/2010 - 1:57pm
To search for a text pattern in files in linux, do the following:
find / -type f -print0 | xargs -0 grep -i 'your pattern'
Comments
grep -ir 'your pattern'
by Anonymous - 04/14/2011 - 6:47am
grep -ir 'your pattern' *
or
find / -type f -exec grep -il 'your pattern' {} \;
Post new comment