简体   繁体   English

如何在macOS中使用脚本将XLSB文件转换为XLSX或CSV? 我尝试过R和JavaScript失败了吗?

[英]How to convert XLSB files to XLSX or CSV with a script in macOS? I've tried R and JavaScript without success?

I've tried R and a JavaScript library j without success. 我尝试了RJavaScriptj,但没有成功。 I saw a way to do it with libreoffice CLI, so should I try with bash ? 我看到了使用libreoffice CLI执行此操作的方法,因此我应该尝试使用bash吗?

With j I did: 使用j我做了:

j file.xlsb --xlsx --output file.xlsx

I'm not sure this is bash related, but sure you could try running LibreOffice from the command line to convert xlsb to csv : 我不确定这与bash有关,但是请确保您可以尝试从命令行运行LibreOfficexlsb转换为csv

soffice --convert-to csv file.xlsb

Or if you have many files to convert: 或者,如果您要转换的文件很多:

soffice --convert-to csv *.xlsb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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