[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Shel command
- Subject: Re: [cobalt-developers] Shel command
- From: "Zeffie" <cobaltlist@xxxxxxxx>
- Date: Wed Oct 15 12:19:01 2003
- Organization: http://www.zeffie.com/
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> Is their command to search for text within a file? I'm trying to find all
> index.html files (in /home/sites/) containing the text my_logo.jpg.
> - Chris
locate index.html | xargs grep my_logo.jpg
The output will list the filenames and usage withing the file..
for more fun... or just a nice clean list you can find...
"all index.html files (in /home/sites/) containing the text my_logo.jpg"
locate index.html | grep /home/sites/ | xargs grep my_logo.jpg |
cut -f1 -d":"
btw... find does to much work... and well.. egrep is a .... nevermind
Zeffie
734-454-9117
http://www.zeffie.com/
Home of Worlds Largest collection of raq4 rpms