[CentOS] find

Mon Oct 6 16:26:45 UTC 2008
Ralph Angenendt <ra+centos at br-online.de>

MHR wrote:
> On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <ra+centos at br-online.de> wrote:
> > If you are using GNU grep (well, you are using CentOS),
> >
> > grep -ri "foo" dir/to/search/in
> >
> > seems much shorter to me.
> >
> 
> Without the -H you don't get the file names....

Hu?

| [angenenr at shutdown httpd]$grep -ri virtu conf* | grep -v "#"
| conf.d/ssl.conf:<VirtualHost _default_:443>
| conf.d/ssl.conf:</VirtualHost>                                  
| [angenenr at shutdown httpd]$grep -rHi virtu conf* | grep -v "#"
| conf.d/ssl.conf:<VirtualHost _default_:443>
| conf.d/ssl.conf:</VirtualHost>                                  

Cheers,

Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20081006/fed9c32e/attachment-0005.sig>