'\" t .\" Title: csv2ods .\" Author: Agustin Henze .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 10/12/2014 .\" Manual: User commands .\" Source: odfpy .\" Language: English .\" .TH "CSV2ODS" "1" "10/12/2014" "odfpy" "User commands" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" csv2ods \- Create OpenDocument spreadsheet from comma separated values .SH "SYNOPSIS" .HP \w'\fBcsv2ods\fR\ 'u \fBcsv2ods\fR \-i\ \fIfile\&.csv\fR \-o\ \fIfile\&.ods\fR .SH "DESCRIPTION" .PP This program reads a file in CSV format \- table of columns delimited by commas, tabs or any other character\&. It then creates a spreadsheet\&. If a value looks like a number the cell is formatted as a number as well\&. .SH "OPTIONS" .PP \-\-version .RS 4 Show program\*(Aqs version number and exit .RE .PP \-h, \-\-help .RS 4 Show help message and exit .RE .PP \-i \fIINPUT\fR, \-\-input=\fIINPUT\fR .RS 4 File input in csv\&. .RE .PP \-o \fIOUTPUT\fR, \-\-output=\fIOUTPUT\fR .RS 4 File output in ods\&. .RE .PP \-d \fIDELIMITER\fR, \-\-delimiter=\fIDELIMITER\fR .RS 4 Specifies a one\-character string to use as the field separator\&. It defaults to ","\&. .RE .PP \-c \fIENCODING\fR, \-\-encoding=\fIENCODING\fR .RS 4 Specifies the encoding the file csv\&. It defaults to utf\-8\&. .RE .PP \-t \fITABLENAME\fR, \-\-table=\fITABLENAME\fR .RS 4 The table name in the output file\&. .RE .PP \-s \fISKIPINITIALSPACE\fR, \-\-skipinitialspace=\fISKIPINITIALSPACE\fR .RS 4 Specifies how to interpret whitespace which immediately follows a delimiter\&. It defaults to False, which means that whitespace immediately following a delimiter is part of the following field\&. .RE .PP \-l \fILINETERMINATOR\fR, \-\-lineterminator=\fILINETERMINATOR\fR .RS 4 Specifies the character sequence which should terminate rows\&. .RE .PP \-q \fIQUOTING\fR, \-\-quoting=\fIQUOTING\fR .RS 4 It can take on any of the following module constants: 0 = QUOTE_MINIMAL means only when required, for example, when a field contains either the quotechar or the delimiter\&. 1 = QUOTE_ALL means that quotes are always placed around fields\&. 2 = QUOTE_NONNUMERIC means that quotes are always placed around fields which do not parse as integers or floating point numbers\&. 3 = QUOTE_NONE means that quotes are never placed around fields\&. It defaults is QUOTE_MINIMAL\&. .RE .PP \-e \fIESCAPECHAR\fR, \-\-escapechar=\fIESCAPECHAR\fR .RS 4 Specifies a one\-character string used to escape the delimiter when quoting is set to QUOTE_NONE\&. .RE .PP \-r \fIQUOTECHAR\fR, \-\-quotechar=\fIQUOTECHAR\fR .RS 4 Specifies a one\-character string to use as the quoting character\&. It defaults to "\&. .RE .SH "EXAMPLE" .sp .if n \{\ .RS 4 .\} .nf csv2ods \-i /etc/passwd \-o accounts\&.odt \-d: .fi .if n \{\ .RE .\} .SH "AUTHOR" .PP \fBAgustin Henze\fR <\&agustinhenze at gmail\&.com\&> .RS 4 Original author of csv\-ods\&.py .RE