TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Create a temp file within the scope of a script(even the script crashes)
2 点
作者
socrateslee
大约 2 年前
1 comment
socrateslee
大约 2 年前
# create temporary file tldr: tmpfile=$(mktemp /tmp/abc-script.XXXXXX) exec 3>"$tmpfile" exec 4<"$tmpfile" rm "$tmpfile" # rest scripts