csv2xlsx

A simple program to convert CSV files into XLSX files.

BSD-3-CLAUSE License

Stars
63
  • csv2xlsx
    ** Introduction
    Because [[https://github.com/tealeg/xlsx2csv][the XLSX2CSV program]] exists, it seemed that it was natural to
    create a csv2xlsx corollary when the underlying xlsx library grew the
    ability to write XLSX files.

Warning, this is old and largely unmaintained.

** Installation

In order to build and install this program you'll need the go toolchain. You can find this in the package management system of pretty much every Linux distro and in Homebrew for Mac. Failing that you can download and install it manually from here: https://go.dev/dl/

Once you have Go installed, you'll need to either clone this repository:

#+BEGIN_SRC sh git clone [email protected]:tealeg/csv2xlsx.git #+END_SRC ... or download and extract a Zipped snapshot from the green "Code" button above.

From within the resulting csv2xlsx directory issue the following command to build the project:

#+BEGIN_SRC sh go build -v . #+END_SRC

If all goes well you shuould find the compiled binary =csv2xlsx= has been created.

** Invocation

To run =csv2xlsx= you must provide it with at least two parameters: an input file // and an output file //. For example:

#+BEGIN_SRC sh ./csv2xlsx -f=MyData.csv -o=MyData.xslx #+END_SRC

If your input file uses a delimiter other than a comma then you must provide that as a third paramater, thus:

#+BEGIN_SRC sh ./csv2xlsx -f=MyData.csv -o=MyData.xslx -d=";" #+END_SRC

** Alternatives If you're looking for a more useful csv2xlsx convertor checkout out.. :

  • [[https://gitlab.com/DerLinkshaender/csv2xlsx][gitlab.com/Derlinkshaender/csv2xlsx]]