#!/bin/sh
# NTT H N
# ttt H N
#
# Show the status of the last H hosts scanned.  (Default 10) We show the last
# N summary lines for each host. (Default 5) We remove hosts that contain the
# no-ABC message.  At the start and end, we show the number of hosts.

if [ $# -lt 1 ];then set 10; fi
if [ $# -lt 2 ];then set $1 6; fi
echo `ls hst | wc -l` hosts.
sleep 1
#find hst -type f -print \
#	| xargs egrep -il ' No ABC found at | No ABC ever found at' \
#	| xargs todel
TT $2 `ls -tr hst | tail -$1`
echo `ls hst | wc -l` hosts.
