r1 - 26 Aug 2005 - 17:13:50 - BrendanOConnorYou are here: OSAF >  Journal Web  >  ContributorNotes > BrendanOConnorNotes > AnnotationStatistics
some zsh commandline-able scripts for annotation statistics

stupid wiki kills the text

first, annotation:

for f in **/*(.); do svn praise $f > $f.praise && echo "PRAISED $f" || rm $f.praise; done

how many lines written per person in a dir

for d in **/ ; do cd $d && echo "DIRECTORY $d:" && cat **/*.praise | awk '{print $2;}' | sort | uniq -c | sort -nr; cd - >/dev/null; done | tee out


how many different files did each person touch/get mentioned in

for p in $(cat out | awk '{print $2;}'); do num=$(grep -l $p **/*.praise | wc -l); echo "$num\t$p"; done


how many different people have touched each file

for f in **/*.praise;  do  num=$(cat $f | awk '{print $2;}' | sort | uniq | wc -l);  echo "$num\t$f"; done | tee out
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.