It resembles a first approximation to a rough draft...
[ipdf/sam.git] / wordcount.sh
1 #!/bin/bash
2 # Count words in thesis
3
4 function doThing {
5         for i in $1/*.tex; do
6                 echo -e "$2/$(basename $i) : $(detex $i | wc -w)"
7                 if [ -e ${i%.*} ]; then
8                         doThing ${i%.*} ${i%.*} 
9                 fi
10         done
11 }
12 doThing chapters chapters
13 echo "Total : $(detex thesis.tex | wc -w)"
14

UCC git Repository :: git.ucc.asn.au