parse csv table and format it to pipe delimited table