MHR wrote:
> On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <[EMAIL PROTECTED]> 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?

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

Cheers,

Ralph

Attachment: pgpVMQekUVj2i.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to