Re: scripting question
On 21.09.07 08:18, Michael Martinell wrote:
> My script is as follows:
> #!/bin/sh
>
> TERM=vt100
> export TERM
forcing TERM in script is very bad idea, and in this script also useless.
> date && echo " Spam Count" && /bin/more /var/log/syslog | /bin/grep -c
> 'identified spam' && echo " " && echo "Clean Message Count " && /bin/more
> /var/log/syslog | /bin/grep -c 'clean message'
date
echo -n "Spam Count "
grep -Fc 'identified spam' /var/log/syslog
echo -n "Ham Count "
grep -Fc 'clean message' /var/log/syslog
... easier to read
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."
Reply to: