Initial preprocessing of output (to tab-separated values)