git.ucc.asn.au
/
ipdf
/
sam.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0c63f10183efd7d9fdd1c0b0c5b3be5c5c425be5
[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