Script to pivot csv table.