1 Star 3 Fork 4

Kuangcp / Memo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wordRecord.sh 550 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kuangcp 提交于 2022-03-07 02:08 . x) script
hasCommandByType(){
if type $1 2>/dev/null; then
echo 1
else
echo 0
fi
}
result=$(hasCommandByType countzh)
result=$(echo $result | grep is)
if test -z "$result" ; then
echo "count not install, start install"
go get github.com/kuangcp/gobase/toolbox/countzh
fi
logFile=submission.log
if [ "$1"z = "z" ];then
word=$(countzh -s)
line=$(git ls-files | grep -v "ARTS" | xargs cat | wc -l)
time=$(date "+%F %T")
echo "$word $line lines on $time " >> $logFile
less $logFile
else
less $logFile
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/gin9/Memo.git
git@gitee.com:gin9/Memo.git
gin9
Memo
Memo
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891