Chris> f="$(who | grep $(tty | sed s./dev/..))" hm. what are you trying to use this for? it doesn't seem too much more informative than just "tty" by itself. further, "last -1" might be more what you're looking for. or actually: last -1 `id -un` maybe. then again, i don't know what you're trying to do. :) t.