📄 _trap
字号:
#!/bin/shtrap 'rm -f /tmp/my_tmp_file_$$' INTecho creating file /tmp/my_tmp_file_$$date > /tmp/my_tmp_file_$$echo "Press interrupt (Ctrl-C) to interrupt...."while [ -f /tmp/my_tmp_file_$$ ]; do echo File exists sleep 1doneecho The file no longer existstrap -INTecho creating file /tmp/my_tmp_file_$$date > /tmp/my_tmp_file_$$echo "Press interrupt (Ctrl-C) to interrupt...."while [ -f /tmp/my_tmp_file_$$ ]; do echo File exists sleep 1doneecho We never get hereexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -