A trivial command-line program to replace newlines (0x0a) and carriage-returns (0x0d) with spaces (0x20).
csvflat -h
Usage: csvflat [OPTION]... [FILE]...
Output records from a CSV file after replacing any embedded newlines with spaces.
More than one FILE can be specified.
-d, --delimiter=DELIM the delimiting character for the input FILE(s)
-Q, --csv-quote CSV quoting character (double-quote is the default)
-h, --help This help
The following project has made csvflat
possible:
- libcsv - Version 3.0.3 of
libcsv
is included withcsvflat
.
Please consider contributing to libcsv if you find csvflat
useful.
Note that this git repository does not include a configure
script like a
distribution tarball normally does. If you don't want to bother with
installing autoconf
and automake
, then download a distribution
package
and run configure
:
./configure
If you want the csvflat
binary installed in your $HOME/bin
, you should
run something like:
./configure --prefix=$HOME
If you're building from a copy of this git repository, you'll need to have
autoconf
and automake
installed on your system, and run the following
command to generate a configure
script:
autoreconf -i
...and subsequently run configure
as mentioned before.
After configure
completes successfully, you can do the usual:
make
make check
make install
Miguel Gualdron (dev at gualdron.com).