[clamav-users] Version 0.98.3 hard loops on "clamdscan -V"

Dennis Peterson dennispe at inetnw.com
Sat May 10 14:40:44 UTC 2014


On 5/9/14, 7:26 PM, Eric Shubert wrote:
> On 05/09/2014 04:41 PM, Dennis Peterson wrote:
>> On 5/9/14, 7:33 AM, Bowie Bailey wrote:
>>> On 5/8/2014 10:35 PM, Eric Shubert wrote:
>>>> [root at qmt-cos5 etc]# grep -v ^# clamd.conf | grep -v ^$
>>>
>>> Inefficiency bugs me...  You can do multiple patterns with a single
>>> grep using the -e flag.
>>>
>>> grep -v -e ^# -e ^$ clamd.conf
>>>
>>
>> Try (and there are surely others even shorter)
>>
>>    egrep -v '^(#|$)' clamd.*f
>>
>> dp
>> _______________________________________________
>
> Nice, Dennis. A little regex savvy eliminates the -e flags entirely. :)
>
> Will grep do this, or is egrep required?
>
   grep -v -E '^(#|$)' clamd.*f

dp



More information about the clamav-users mailing list