Consolidate csv output lines