Files
misc/shell_scripts/wiki_diff_distribution

14 lines
372 B
Plaintext
Raw Normal View History

2011-07-14 02:01:00 +02:00
#! /usr/bin/env bash
2011-07-12 23:26:49 +02:00
# to use in wiki root
## XXX this is not consistent with some other commands
### e.g. wiki_contribution_distribution
grep diff: $(ls $1/wiki.d/* | grep -v PmWiki. | grep -v Site.) > alllines
echo "" > diff_distribution
while read line; do
echo "$line " | wc -w >> diff_distribution
done < alllines
sort -n diff_distribution | uniq -c | sort -r -n