/ Published in: Other
Expand |
Embed | Plain Text
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
You need to login to post a comment.
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
You need to login to post a comment.