# # Csh script to save most environment variables -- save for those that # usually should NOT be saved -- to stdout, in a form that can be sourced # by a Bourne shell. printenv | egrep -v '^DISPLAY=|^TERM=|^SSH_AUTH_SOCK=|^SSH_AGENT_PID=|^_=' | \ sed -e "s/'/'"'"'"'/g" \ -e 's/\([^=]*\)=\(.*\)/\1='"'"'\2'"'"'; export \1/'