在其他外部程序的帮助下这是可能的。例如,如果您的计算机上安装了 LibreOffice,则以下 Bash 代码将实现您想要的效果:
libreoffice --invisible --convert-to html /folder/spreadsheet.xlsx --outdir /destination/folder
Run Code Online (Sandbox Code Playgroud)
上面的代码在 LibreOffice 版本 4.3.3.2 上运行良好。
| 归档时间: |
|
| 查看次数: |
3016 次 |
| 最近记录: |