如何使用 bash 脚本将 .xlsx 文件转换为 html?

Ann*_* K. 1 html bash shell xlsx

我喜欢使用 bash 脚本将 .xlsx 文件转换为 .html 文件。那可能吗?

谢谢你!

Jam*_*aid 6

在其他外部程序的帮助下这是可能的。例如,如果您的计算机上安装了 LibreOffice,则以下 Bash 代码将实现您想要的效果:

libreoffice --invisible --convert-to html /folder/spreadsheet.xlsx --outdir /destination/folder
Run Code Online (Sandbox Code Playgroud)

上面的代码在 LibreOffice 版本 4.3.3.2 上运行良好。