Return to Snippet

Revision: 10387
at December 23, 2008 21:20 by kevinberny


Initial Code
tf=/tmp/tf.$$
cleanup() {
	rm -f $tf
	echo $tf "removed."
}
trap "cleanup" EXIT

touch $tf
echo "$tf created"
#temp file auto removed on exit or on quit

Initial URL


Initial Description


Initial Title
Clean temp file create and cleanup

Initial Tags
textmate, Bash

Initial Language
Other