[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Shel command
- Subject: Re: [cobalt-developers] Shel command
- From: Michael Stauber <devel@xxxxxxxxxxxxxx>
- Date: Wed Oct 15 08:47:00 2003
- Organization: SOLARSPEED.NET
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi Chris,
> 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.
>
> i.e. locate index.html | [command to find my_logo.jpg]
> -or-
> Something like: find /home/sites/.*index.html | grep -v -g
> '^/home/sites/.*/_vti_cnf' | [command to find my_logo.jpg]
Use the command "egrep":
egrep my_logo.jpg -r /home/sites/*
Use "man egrep" to find out more about this command. It has some pretty
powerful options.
--
With best regards,
Michael Stauber