Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 03:21:43 +0200
From:      Patrick Hess <patrickhess@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Script question
Message-ID:  <5180074.S4mo5nn1SN@desk8.phess.net>
In-Reply-To: <557E1EA7.3080507@gmail.com>
References:  <BAY182-W89C2924F4BDF0D2BD3810DF4BB0@phx.gbl> <2609852.Pc7nSdcYla@desk8.phess.net> <557E1EA7.3080507@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5180074.S4mo5nn1SN>