mktemp
Send to Kindle
home
»
snippets
»
linux
»
terminal
»
mktemp
Links
mktemp.org: Manual
Safely Creating Temporary Files in Shell Scripts (good)
SO:
TDIR=mktemp -d
,
trap "{ cd - ; rm -rf $TDIR; exit 255; }" SIGINT