deal with changing connnames: use the last

This commit is contained in:
Andy2 2011-06-23 18:12:38 -07:00
parent e886a1aefe
commit a5bab1232f

View file

@ -54,8 +54,8 @@ usage() {
connName() {
LOG=$1
grep 'got_connect_cmd: connName' $LOG | \
sed 's,^.*connName: \"\(.*\)\"$,\1,' | \
sort -u
tail -n 1 | \
sed 's,^.*connName: \"\(.*\)\"$,\1,'
}
while [ "$#" -gt 0 ]; do