Daily wordcount script · 3:57am Apr 4th, 2016
Disclaimer: This is mainly for me to keep this at hand and not lose it.
This is a small, simple script that registers the total wordcount in a determinate folder per day. The output format is a space-delimited CVS file:
64487 04/04/2016
The full script, which for now is a .bat file, is:
find [FOLDER] -name "*.txt" -print0 | wc -w --files0-from=- | gawk '{print $1}' | tail -n 1 >>data.txt
date /T | gawk '{print $2}'>>data.txt