spell.sh
来自「java操作excel的类」· Shell 代码 · 共 31 行
SH
31 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?