trap to cleanup Jan 20, 2014 function cleanup() { rm -v $TEMPFILE } # catch HUP, INT, QUIT, and TERM trap cleanup 1 2 3 15