haseebpatel / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

Semicolon ';' seperators are not supported #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a semicolon ';' seperated CSV file
2. Issue command: csvfix echo <FILENAME>

What is the expected output? What do you see instead?
EX)
file.csv
------------------------------------------
fname;lname;email
job;bob;test@example.com
k;dog;test@example.com

EXPECTED result of `csvfix echo file.csv`
------------------------------------------
"fname";"lname";"email"
"job";"bob";"test@example.com"
"k";"dog";"test@example.com"

ACTUAL result of `csvfix echo file.csv`
------------------------------------------
"fname;lname;email"
"job;bob;test@example.com"
"k;dog;test@example.com"

EXPECTED result of `csvfix order -f 1 file.csv`
------------------------------------------
"fname"
"job"
"k"

ACTUAL result of `csvfix order -f 1 file.csv`
------------------------------------------
"fname;lname;email"
"job;bob;test@example.com"
"k;dog;test@example.com"

What version of the product are you using? On what operating system?
Latest version on 64-bit Linux

Please provide any additional information below.
CSVFix also seems to not support semicolon separated files with any command.

Original issue reported on code.google.com by nealky...@gmail.com on 15 Apr 2015 at 5:34

GoogleCodeExporter commented 8 years ago
After reading docs I realize that -rsep ';' can be used...but maybe it would be 
nice to automatically detect the separator? Not sure how performance would be 
affected, but I do this in my app that is in production by reading a few lines 
from the specified file and gather stats on it.

Original comment by nealky...@gmail.com on 15 Apr 2015 at 5:50