Script to produce tidy data text file