6
# sed -n -e 7p $1 | awk '{print $2}'
7
# head -7 $1 | tail -1 | awk '{print $2}'
8
awk '{ if (NR == 9) { print $2; exit 0; } }' $1
12
if test "$*" = "$files" ; then
16
echo $f : `logname $f`
20
discard_list="/bin/ps /bin/sh /bin/stty /usr/bin/cmp awk cat chmod cmp cp env expr find grep kill mv rev rlogin rm sed sh sleep sort tail test touch wc whoami xargs"
21
discard_list="$discard_list tcsh tokens"
22
#discard_list="$discard_list ./rtest ./dbtest"
23
# The t_inetd program's logs seem to always wind up incomplete for some
24
# reason. It's also not terribly important.
25
discard_list="$discard_list /path/to/.../t_inetd"
28
if test "$*" = "$files" ; then
33
for d in $discard_list; do
34
if test "$n" = "$d"; then
43
kill_error_free_logs() {
44
if test "$*" = "$files" ; then
47
grep -l "ERROR SUMMARY: 0 errors" $* | while read name ; do
48
echo rm $name : no errors in `logname $name`
54
if test "$*" = "$files" ; then
57
grep -l "ERROR SUMMARY: 0 errors" $* | \
58
grep -l "definitely lost: 0 bytes" $* | \
59
xargs grep -l "possibly lost: 0 bytes" | \
60
xargs grep -l "still reachable: 0 bytes in 0 blocks" | \
62
echo rm $name : no leaks or errors in `logname $name`
68
kill_error_free_logs $files
69
#kill_no_leak_logs $files