Table of Contents

Products, services and company names referenced in this document may be either trademarks or registered trademarks of their respective owners.

Copyright © 2017–2020 EVL Tool, s.r.o.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts.


Read <file.csv>, guess data types, field separator, if strings are quoted, and write EVD to standard output or to <file.evd>.

It uses header line for field names, spaces are replaced by underscores.

Separator is trying to be guessed in this order: ‘,’ (comma), ‘;’ (semi-colon), ‘|’ (pipe), ‘\t’ (tab), ‘:’ (colon), ‘’ (space).

Quotation character is guessed in this order: double quotes, single quotes.


  <file.csv> [-o|--output=<file.evd>]

  ( --help | --usage | --version )


-d, --date=<format>

by default it tries only ‘%Y-%m-%d’, then ‘%Y%m%d’, then ‘%d.%m.%Y

-h, --header=<field_name>,...

use comma separated list of field names instead of header line, for example when there is no header in csv file (option ‘-n’ must be used) or when other field names would be used

-n, --no-header

with this option it suppose there is no header. Fields will be named ‘field_001’, ‘field_002’, etc.

-l, --null=<string>

to specify what string is used for NULL values in CSV, empty string is allowed

-o, --output=<file.evd>

write output into file <file.evd> instead of standard output

-q, --quote=<char>

do not guess if fields are quoted, but suppose <char> as quotation character

-s, --separator=<char>

do not guess the separator, but use <char> instead

-t, --timestamp=<format>

by default it tries only ‘%Y-%m-%d %H:%M:%S’, then ‘%Y%m%d%H%M%S

-v, --verbose

print to STDERR info/debug messages


print this help and exit


print short usage information and exit


print version and exit


  1. Having some.csv:
    1;2019-06-06;some string

    This command:

    csv2evd --null="" some.csv

    will produce:

    id       int              null="" sep=";"
    started  date("%Y-%m-%d") null="" sep=";"
    value    string           null="" sep="\n"