This repository has been archived on 2025-02-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
CLF/html/scripts/bin/logbreakout
2004-09-10 11:31:11 +00:00

8 lines
268 B
Tcsh

#!/bin/tcsh
#$Id$
set hosts=`cat $1 | tr -s " " "\t" | cut -f4 | sort -u`
foreach host ( $hosts )
echo -n "Host: $host "
set results=`egrep " $host " $1 | wc | tr -s " " "\t" | cut -f 2,4`
echo "Lines: $results[1] Bytes: $results[2]"
end