On Thu, Apr 06, 2000 at 10:12:19PM +0200, Markus Stumpf wrote:
> For quick queue inspection I use:
> [ ... ]
Thanks for all the input to enhance my poor little script ;-)
Here's a more GNU awk'ish Version, that eliminates everything but the last
sort.
------------------------------------------------------------------------
#!/bin/sh
qmail-qread |\
awk -F@ '/^ done\t/ {next} /\tremote\t/ || /\tlocal\t/ {q[tolower($2)]++} END {for
(host in q) printf("%5d %s\n", q[host], host)}' \
| sort -nr
------------------------------------------------------------------------
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Stress is when you wake
Research & Development | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you haven't
D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.