|Main Archive Page > Month Archives > clamav-users archives|
On 05/09/2014 07:45 AM, Greg Folkert wrote:
> On Fri, 2014-05-09 at 10:33 -0400, Bowie Bailey wrote:
>> On 5/8/2014 10:35 PM, Eric Shubert wrote:
>>> [root@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
> You are sufficiently lazy! You beat me to it... you know, because I'm
> morerer lazy.
Thanks for the pointer. At my age though, my typing is stronger than my
memory (what was that flag again?), so the longer form sometimes suits
me better (fewer things to remember!). :)
Note, if I was scripting it, I hope I'd use the -e flag for efficiency.