Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View semicolon-separated .csv files in gnumeric

Tags:

csv

gnumeric

I have a semicolon-separated csv file over here, and I would like to be able to look at it with gnumeric. Sadly, gnumeric does not read the semicolon as a separator.

I have tried:

  • appending sep=; on the first line
  • clicking through the GUI menus
  • using sed to replace the semicolons with commas (sadly, that leads to breakage, since by document occasionally uses commas within cells

What else can I do?

like image 798
TheChymera Avatar asked Jul 30 '15 11:07

TheChymera


People also ask

How do I separate a column in a CSV file?

Open a new Excel sheet. Click the Data tab, then From Text. Select the CSV file that has the data clustered into one column. Select Delimited, then make sure the File Origin is Unicode UTF-8. Select Comma (this is Affinity's default list separator). The preview will show the columns being separated.

How to convert one CSV separator to another separator?

To convert from one separator to another separator, it is only necessary to pipe the results from the Import-CSV cmdlet to the Export-CSV cmdlet. When using the Import-CSV cmdlet, specify the semicolon as the delimiter. When using the Export-CSV cmdlet, specify the comma as the delimiter. The command to do this is shown here:

How to add a comma as a delimiter in CSV files?

When using the Import-CSV cmdlet, specify the semicolon as the delimiter. When using the Export-CSV cmdlet, specify the comma as the delimiter. The command to do this is shown here:

What is the default list separator in CSV?

In North America and some other countries, the default list separator is a comma, so you get CSV comma delimited. In European countries, a comma is reserved for the decimal symbol, and the list separator is generally set to semicolon. That is why the result is CSV semicolon delimited.


1 Answers

In recent versions of gnumeric a new Import Data tool is available. To launch the tool choose Data|Import Data|Import Text File... from the menu.

  1. In the Import Data File dialog choose your file and hit Open.
  2. In the next screen select Separated format and click Forward
  3. In the following screen select a separator from a number of available options and click Forward once again to choose the columns to import.
  4. Click Finish to complete.

enter image description here

like image 86
Dmitri Chubarov Avatar answered Sep 19 '22 05:09

Dmitri Chubarov