# 后端
``` shell
git log --all --since=2021-10-01 --until=2021-12-31 --format='%aN'| sort -u | while read name; do echo -en "$name\t"; git log --all --since=2021-10-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat | grep "\(.html\|.java\|.py\|.xml\|.properties\|.yml\|.json\|.yml\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
```
# 前端
``` shell
git log --all --since=2021-10-01 --until=2021-12-31 --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --all --since=2021-10-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat | grep "\(.html\|.java\|.xml\|.js\|.jsx\|.vue\|.properties\|.json\|.less\|.css\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
```
``` shell
git log --since=2021-10-01 --until=2021-12-31 --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --since=2021-10-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat | grep "\(.html\|.java\|.xml\|.js\|.jsx\|.vue\|.properties\|.json\|.less\|.css\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
```
# iOS
``` shell
git log --all --since=2021-10-01 --until=2021-12-31 --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --all --since=2021-10-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat | grep "\(.h\|.m\|.json\|.pbxproj\|Podfile\|.rb\|.plist\.pch\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
```
# Android
``` shell
git log --all --since=2021-10-01 --until=2021-12-31 --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --all --since=2021-10-01 --until=2021-12-31 --author="$name" --pretty=tformat: --numstat | grep "\(.html\|.java\|.py\|.xml\|.properties\|.gradle\|.pro\|.yml\)$" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
```