I need to produce a Tab Delimited CSV of a query pulled from a mySql database. I am using MySQL Query Browser to extract the data as ordenery CSV.

Does anyone know how to convert an ordinery -- comma seperated -- CSV into a Tab Delimited. I can't find a way to do it in nither Excel nor Open Office.

Manny thanks!

p.s. I'm working on a windows 7 machine.

有帮助吗?

解决方案

Linux?

sed 's/,/\t/g' commaDelimited > tabDelimited

Windows?

Open notepad, press TAB, select and copy the tab space. Open the CSV in notepad, Edit->Replace... fill , in the first box and paste your tab in the second box and just Replace All.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top