This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我写了一个脚本来做一些备份。有一个if要求确认的块:
read -p "Do you want to continue? [y/n]" confirm
if [[ ${confirm} == "n" ]]; then
# do something like CTRL+Z, and halt until I run fg <job number> to activate this script
else
# do some stuff
fi