/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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