Convert xlsx to text CSV via command line only on Linux [closed]

泄露秘密 提交于 2019-12-10 21:39:03

问题


Simple question:

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)?

Thanks,


回答1:


Here is the command:

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

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.

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



来源:https://stackoverflow.com/questions/15746295/convert-xlsx-to-text-csv-via-command-line-only-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!