Mercurial > hg > batmud > misc
view taskinfo/findundone.sh @ 0:81f1abadda3e misc
Renamed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Jul 2008 12:04:43 +0000 |
parents | |
children | c017b362673d |
line wrap: on
line source
#!/bin/sh TMPFILE=`mktemp -t findundone-$USER.XXXXXXXXXX` || exit 1 LOGFILE="$HOME/tiny.log" echo "Searching logfile '$LOGFILE' for finished tasks ... " tail -500 "$LOGFILE" | perl -ne 'if(/^ \| ([A-Z][^|]+)\| \[ \:. \]/){$s=$1;$s =~ s/ *$//;print "$s\n"}'|sort|uniq > "$TMPFILE" echo "Found `cat $TMPFILE|wc -l` tasks." echo "Checking for missing (unopened) tasks ..." perl -w findreqs.pl -tasks < taskdata.txt | while read i; do if ! grep "$i" "$TMPFILE" > /dev/null; then echo "* $i" fi done rm -f "$TMPFILE"