Restructure chapters, delete a bunch of words, add more words, do some things, panic...
[ipdf/sam.git] / wordcount.sh
diff --git a/wordcount.sh b/wordcount.sh
new file mode 100755 (executable)
index 0000000..0c63f10
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Count words in thesis
+
+function doThing {
+       for i in $1/*.tex; do
+               echo -e "$2/$(basename $i) : $(detex $i | wc -w)"
+               if [ -e ${i%.*} ]; then
+                       doThing ${i%.*} ${i%.*} 
+               fi
+       done
+}
+doThing chapters chapters
+echo "Total : $(detex thesis.tex | wc -w)"
+

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