The caret '^' represents the beginning of the line. You're looking for the end of the line, represented by '$'. If the files end in '.log' then you're looking for something more like:
ExcludePath \.log$ The backslash '\' escapes the dot that otherwise would be interpreted to represent any single character. > -----Original Message----- > From: [email protected] [mailto:clamav-users- > [email protected]] On Behalf Of clamav-users- > [email protected] > Sent: Wednesday, September 04, 2013 6:00 AM > To: [email protected] > Subject: clamav-users Digest, Vol 108, Issue 1 > > Send clamav-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific than > "Re: > Contents of clamav-users digest..." > > > Today's Topics: > > 1. regex to skip certain files (monte olvera) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 03 Sep 2013 17:57:43 -0400 > From: monte olvera <[email protected]> > Subject: [clamav-users] regex to skip certain files > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="UTF-8" > > I'm running clamav 0.97.3 (I know it's old, working on that) on Linux. I > want to > exclude files (via clamd) based on a regex and can't seem to figure out how. > I > can ignore paths just fine (ExcludePath ^/tmp) but I want to ignore all log > files. I've tried many different variations of the following, including ones > not > listed and can't seem to get antying working. Can someone please tell me > how I can scan the root filesystem and ignore all files appended with a > ".log"? > > Some of what I've tried, which have all failed. > > ExcludePath ^*log > ExcludePath ^.*log > ExcludePath ^*.log > ExcludePath ^/.*log > ExcludePath ^/*.log > > > > > ------------------------------ > > _______________________________________________ > clamav-users mailing list > [email protected] > http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users > > > End of clamav-users Digest, Vol 108, Issue 1 > ******************************************** _______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/support/ml
