Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert XLSB files to csv in Linux on command line

I have thousands of XLSBs files (binary excel files). I'm on Ubuntu and need to convert them all to CSVs. Each files has lots of macros and tabs, however, all this content can be ignored as for each file I only need the data from the first tab.

Is there a way to do it via command line?

like image 534
Chicoscience Avatar asked Apr 22 '16 20:04

Chicoscience


People also ask

How do I convert XLSX to CSV in Linux?

To install Gnumeric in Linux use the apt-get command to install the Gnumeric repository via Linux terminal. Now to convert xlsx format to csv format using ssconvert command of Gnumeric to convert the file. To view the contents of the file using the cat command to check the csv file.


1 Answers

Found it! If Libreoffice is installed we can do it via the command:

soffice --headless --convert-to csv file.xlsb

The --headless command prevents the GUI from opening

like image 73
Chicoscience Avatar answered Sep 24 '22 13:09

Chicoscience