使用终端将.csv文件转换为.ods


Answers:


21

我使用LibreOffice命令行来转换示例csv文件:

soffice --convert-to ods koko.csv --headless

所以在批处理命令中使用它是

for i in "$1"/*; do soffice --convert-to ods "$i" --headless; done

用法: ./converter.sh /path/to/folder

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.