bash Unix命令将xls文件转换为xlsx文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21531212/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unix command to convert xls file into xlsx file?
提问by Hussain Shabbir
I there any unix command which will convert xls file into xlsx file?
我有任何将 xls 文件转换为 xlsx 文件的 unix 命令吗?
Also i have tried using mv command, it is changing the extension as well. But then i am not able to open the xlsx file.
我也尝试过使用 mv 命令,它也在更改扩展名。但是后来我无法打开 xlsx 文件。
mv .xls .xlsx
Any suggestion will be really appreciate.
任何建议将不胜感激。
回答by Lev Levitsky
As far as I know, this is not something you can easily do with standard unix tools.
据我所知,这不是您可以使用标准 unix 工具轻松完成的事情。
You can use LibreOffice:
您可以使用 LibreOffice:
libreoffice --convert-to xlsx my.xls --headless
Or maybe find an online converter and submit your file to it.
或者也许可以找到一个在线转换器并将您的文件提交给它。