📄 restart
字号:
#! /bin/sh## restart shell script#if test $# -ne 1; then echo "Usage: $0 checkpoint_file"; exit; fifile="$1"if test ! -f "$file"; then echo "$0: $file: File not found"; exit; filastTwoEnds=`egrep -n '((;)|(\)\.))[ ]*$' "$file" | sed 's/^\([0-9]*\):.*$/\1/' | tail -2`nFound=`echo $lastTwoEnds | wc -w`if test $nFound -eq 0; then echo "$0: Unable to locate end of tree(s) in file" exitfiread first_lineecho "$first_line R"cat -# tail -1 "$file"if test $nFound -eq 1; then cat "$file"else penultimateEnd=`echo $lastTwoEnds | sed 's/^\([0-9]*\).*$/\1/'` lastStart=`expr $penultimateEnd + 1` tail +$lastStart "$file"fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -