# Note: this is a bash version of the rather pointless logout message from # the tcsh ~/.logout, it does the same thing, but a little cleaner. echo "Goodbye `egrep "^$USER:" /etc/passwd | awk -F: '{print $5}'` you were logged in from `who am i | awk '{print $6}' | tr -d '()'`"