Script question
jd1008
jd1008 at gmail.com
Mon Jun 15 01:41:27 UTC 2015
On 06/14/2015 07:21 PM, Patrick Hess wrote:
> jd1008 wrote:
>> On 06/14/2015 06:27 PM, Patrick Hess wrote:
>>> awk '/spam=YES/ {print $11}' /var/log/maillog |
>>> sort |
>>> uniq |
>>> sed -e 's/^.*=//' |
>>> tee -a /usr/samba/mail/envelope |
>>> mail -s "SPAM IPs...." us.navy at outlook.com
>> Patrik, you forgot to add the continuation \
>> at end of you lines.
> No, I didn't. Just try it. /bin/sh most definitely does not require
> a \ if the line ends with a | (or &&, ||, etc. for that matter).
>
> Patrick
Right - I had forgotten that :)
More information about the freebsd-questions
mailing list