csv2xlsx

command module
v0.0.0-...-f72cd0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

* 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 git@github.com: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 /<f>/ and an output file /<o>/.  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]]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL