On 5/9/14, 7:33 AM, 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


Try (and there are surely others even shorter)

  egrep -v '^(#|$)' clamd.*f

dp
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml

Reply via email to