[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find files by text/subdirectories



Lance Hoffmeyer <lanceh@ibm.net> writes:
> What is the easiest way to locates files (say HTML) by text in their
> documents?  

find ~/somedir -iname "*\.htm*" -exec grep -i "some text" {} \; -print

morgan
-- 
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
>> M o r g a n   F l e t c h e r    http://www.hahaha.org/morgan <<
>> Tibi gratias agimus quod nihil fumas.       morgan@hahaha.org <<


Reply to: