MHR wrote: > On Mon, Oct 6, 2008 at 2:41 AM, Ralph Angenendt <ra+centos@xxxxxxxxxxxx> 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@shutdown httpd]$grep -ri virtu conf* | grep -v "#" | conf.d/ssl.conf:<VirtualHost _default_:443> | conf.d/ssl.conf:</VirtualHost> | [angenenr@shutdown httpd]$grep -rHi virtu conf* | grep -v "#" | conf.d/ssl.conf:<VirtualHost _default_:443> | conf.d/ssl.conf:</VirtualHost> Cheers, Ralph
Attachment:
pgpcMZlWRdZ8U.pgp
Description: PGP signature
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos