first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / tty / findterm.sh
1 #!/bin/bash
2
3 # this shell file locates a terminal of the user whose
4 # login id is specified as the first parameter.
5
6 if [ -z "$1" ]; then
7   echo $(basename $0): needs a user name as a parameter.
8   exit 1
9 fi
10
11 who | grep $1 | awk '{ print $2 }'