Convert xlsx to csv in Linux with command line

后端 未结 10 1324
心在旅途
心在旅途 2020-11-28 00:36

I\'m looking for a way to convert xlsx files to csv files on Linux.

I do not want to use PHP/Perl or anything like that since I\'m looking at processing several mill

10条回答
  •  孤独总比滥情好
    2020-11-28 01:10

    You can do this with LibreOffice:

    libreoffice --headless --convert-to csv $filename --outdir $outdir
    

    For reasons not clear to me, you might need to run this with sudo. You can make LibreOffice work with sudo without requiring a password by adding this line to you sudoers file:

    users ALL=(ALL) NOPASSWD: libreoffice
    

提交回复
热议问题