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() { connName() {
LOG=$1 LOG=$1
grep 'got_connect_cmd: connName' $LOG | \ grep 'got_connect_cmd: connName' $LOG | \
sed 's,^.*connName: \"\(.*\)\"$,\1,' | \ tail -n 1 | \
sort -u sed 's,^.*connName: \"\(.*\)\"$,\1,'
} }
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do