[CentOS] find

Tue Oct 7 23:09:14 UTC 2008
Jeremiah Heller <jeremiah at itmustbe.com>

On 6 Oct 2008, at 09:33, MHR wrote:

> On Mon, Oct 6, 2008 at 9:26 AM, Ralph Angenendt <ra+centos at br-online.de 
> > wrote:
>>
>> 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>
>>
>
> Doh!  Of course - -r implies multiple files, so without -h you  
> _will_ get them.

Shorter still=P

[jf at betty conf.d]$ grep -i virtu *
ssl.conf:##  the main server and all SSL-enabled virtual hosts.
ssl.conf:## SSL Virtual Host Context
ssl.conf:<VirtualHost _default_:443>
ssl.conf:# General setup for the virtual host, inherited from global  
configuration

Filenames show even if a grep of many files only returns one result
[jf at betty conf.d]$ grep -i "loadmodule ssl" *
ssl.conf:LoadModule ssl_module modules/mod_ssl.so

Jeremiah