Convert xlsx to csv in Linux with command line

后端 未结 10 1332
心在旅途
心在旅途 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 00:48

    The Gnumeric spreadsheet application comes with a command line utility called ssconvert that can convert between a variety of spreadsheet formats:

    $ ssconvert Book1.xlsx newfile.csv
    Using exporter Gnumeric_stf:stf_csv
    
    $ cat newfile.csv 
    Foo,Bar,Baz
    1,2,3
    123.6,7.89,
    2012/05/14,,
    The,last,Line
    

    To install on Ubuntu:

    apt-get install gnumeric
    

    To install on Mac:

    brew install gnumeric
    

提交回复
热议问题