转换XLSX仅通过在Linux命令行的文本CSV [英] Convert xlsx to text CSV via command line only on Linux

查看:2709
本文介绍了转换XLSX仅通过在Linux命令行的文本CSV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单问题:

这是目前可以从从命令行调用的LibreOffice打开*的.xlsx和转换/保存为一个* .csv的?

Is it currently possible to invoke LibreOffice from a command line to open a *.xlsx and convert/save it as a *.csv?

替代地,如果这是不可能的是通过命令行操作的这个当前的最佳方法(需要通过脚本可调用)?

Alternatively, if this is not possible what is the current best method for doing this via command line (needs to be invokable via script)?

谢谢,

推荐答案

下面是命令:

localc --headless  --convert-to csv:"Text - txt - csv (StarCalc)" *.xlsx

以上将节省(从那里你会运行命令目录)在当前目录下的所有转换后的文件。所有的转换后的文件将有自己的文件扩展名更改为csv。

The above will save all converted files in current directory(directory from where you'll run the command). All converted files will have their filename extensions changed to csv.

替代,方法是使用 unoconv 的我已经不使用。

Alternative, method is the use of unoconv which i've not used.

这篇关于转换XLSX仅通过在Linux命令行的文本CSV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆