chlog-stats

来自「The Kannel Open Source WAP and SMS gatew」· 代码 · 共 30 行

TXT
30
字号
#!/usr/bin/awk -f## Compute some simple statistics from a ChangeLog file. Output has several# columns:##   1) number of changelog entries#   2) total lines in changelog entries#   3) average lines per entry#   4) username## Output is not sorted. Use "sort -n" to sort.## Lars Wirzenius/^[a-zA-Z0-9]/ {    match($NF, /<.*@/)    who = substr($NF, RSTART+1, RLENGTH-2)    if (who == "") who = $NF    entries[who]++    next}/[^ 	]/ { lines[who]++ }END {    for (who in entries)	printf "%4d %4d %.1f %s\n", entries[who], lines[who], 	    	    lines[who]/entries[who], who}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?