4 ms·Create a temp file within the scope of a script(even the script crashes)2 points by socrateslee 4y agosocrateslee 4y ago# create temporary file tldr: tmpfile=$(mktemp /tmp/abc-script.XXXXXX) exec 3>"$tmpfile" exec 4<"$tmpfile" rm "$tmpfile" # rest scripts