?? _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 + -