: # This file is executed when ending a C-shell interactive session. # Common things to do here might be to tidy up temporary files and # possibly clear the terminal screen using the clear command. # # tput clear if ( -r /etc/csh.logout) source /etc/csh.logout # Note this is a rather pointless example of a ~/.logout that prints a nice # pretty message telling you where you were logged in from. echo "Goodbye `egrep "^$USER:" /etc/passwd | awk -F: '{print $5}'` you were logged in from `who am i | awk '{print $6}' | tr -d '()'`"