📄 spell.sh
字号:
#!/bin/bashfiles="$@"for file in $filesdo ext="${file/*./}" if [ "$ext" == "bte" ] || [ "$ext" == "html" ] then mode="sgml" else mode="url" fi if [ "$ext" != "java" ] || [ ! -e "${file/java/lex}" ] then cp "$file" temp aspell check --mode=$mode -x -p ./util.dict temp if [ "`diff "temp" "$file"`" ] then mv temp "$file" fi fidonehead -1 "util.dict" > temptail +2 "util.dict" | sort | uniq >> tempif [ "`diff "temp" "util.dict"`" ] then mv temp "util.dict"firm -f temp temp.bak
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -