2 Star 0 Fork 0

BESTI.IS.Java2017 / zxm5234

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
statistics 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
zzb20 提交于 2017-12-14 14:53 . daima
#!/bin/sh
#by rocedu(http://www.cnblogs.com/rocedu/)
echo "//==========Today====================================="
echo "code summary infomation:"
find . -name "*.c" -mtime 0 | xargs cat | grep -v ^$ | wc -l
echo "documents summary infomation:"
find . -name "*.md" -mtime 0 | xargs cat | grep -v ^$ | wc -l
echo "commit history:"
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F`
echo ""
echo ""
echo "//==========This Week================================="
echo "code summary infomation:"
find . -name "*.c" -mtime -7| xargs cat | grep -v ^$ | wc -l
echo "documents summary infomation:"
find . -name "*.md" -mtime -7| xargs cat | grep -v ^$ | wc -l
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-1 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-2 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-3 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-4 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-5 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-6 days"`
git log --pretty=format:"%h - %an,%ci: %s " | grep `date +%F --date="-7 days"`
echo ""
echo ""
echo "//==========All================================="
echo "code summary infomation:"
find . -name "*.c"| xargs cat | grep -v ^$ | wc -l
echo "documents summary infomation:"
find . -name "*.md"| xargs cat | grep -v ^$ | wc -l
echo "commit history:"
git log --pretty=format:"%h - %an,%ci: %s "
Java
1
https://gitee.com/bestiisjava2017/zxm5234.git
git@gitee.com:bestiisjava2017/zxm5234.git
bestiisjava2017
zxm5234
zxm5234
master

搜索帮助