On Monday 30 March 2009 22:55:35 Charles Howse wrote: > grep "$date" httpd-error.log | grep -v 192.168.254.254 | grep -v > 192.168.254.3 > /root/err.log
Using pcregrep, installed by devel/pcre, typically available on apache systems: pcregrep "$date.* \[client (?!192\.168\.254)" /var/log/httpd-error.log | \ mail -s"Error log for $date" charles Should work. As far as I know, look ahead assertions aren't supported by re(7) or the extended version. -- Mel _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"