Date: Sun, 14 Jun 2015 19:41:03 -0600 From: jd1008 <jd1008@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Script question Message-ID: <557E2D2F.1090101@gmail.com> In-Reply-To: <5180074.S4mo5nn1SN@desk8.phess.net> References: <BAY182-W89C2924F4BDF0D2BD3810DF4BB0@phx.gbl> <2609852.Pc7nSdcYla@desk8.phess.net> <557E1EA7.3080507@gmail.com> <5180074.S4mo5nn1SN@desk8.phess.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557E2D2F.1090101>