Script question

Patrick Hess patrickhess at gmx.net
Mon Jun 15 01:21:54 UTC 2015


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


More information about the freebsd-questions mailing list