TREC files: Add helper script

Add a bash script that helps creating the TREC files.
We don't have to hardcode it in the indexer and don't
have to call it 60 times by hand either.