Chris Nizzardini, Salt Lake City Utah, Web Developer Specializing in LAMP+Ajax Since 2006

My Blog

Here is my awesome blog.

linux search from shell (grep)

find . -name ‘*.*’ | xargs grep -l ’search term’

UPDATE
The gentlemen who replied below is correct in stating that the command below would be easier.

grep -ril 'search_term' *

One Response to “linux search from shell (grep)”

  1. Randy says:

    Wouldn’t it be easier to type “grep -ril “search term�
    r = recursive
    i = ignore case
    l = only list the file name not “file name:matching line�

    sorry it should read “grep -ril search_term *�

Leave a Reply