简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM