Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a Tab Delimited CSV?

Tags:

export

csv

excel

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.

like image 535
user1563414 Avatar asked Nov 03 '22 18:11

user1563414


1 Answers

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.

like image 88
Oday Mansour Avatar answered Nov 08 '22 07:11

Oday Mansour