CSV2ODS(1)
πΈ NAME πΈ
okay so bestie, welcome to the csv2ods(1) page from the User commands manual β this is the main character energy for turning CSVs into OpenDocument spreadsheets, no cap. csv2ods β Create OpenDocument spreadsheet from comma separated values. periodt π
π SYNOPSIS π
csv2ods -i file.csv -o file.ods
β¨ DESCRIPTION β¨
Okay so this program reads a file in CSV format β table of columns delimited by commas, tabs, or any other character. Then it creates a spreadsheet. If a value looks like a number, the cell is formatted as a number as well. Lowkey iconic behavior, fr fr. π¦
π OPTIONS π
hereβs the full options menu, bestie β every flag is invited to the party π
--versionβ shows the programβs version number and exits. π-h,--helpβ shows the help message and exits. π«Ά-i INPUT,--input=INPUTβ file input in csv. π₯-o OUTPUT,--output=OUTPUTβ file output in ods. π€-d DELIMITER,--delimiter=DELIMITERβ specifies a one-character string to use as the field separator. It defaults to",". π¬-c ENCODING,--encoding=ENCODINGβ specifies the encoding the file csv. It defaults toutf-8. π§-t TABLENAME,--table=TABLENAMEβ the table name in the output file. π·οΈ-s SKIPINITIALSPACE,--skipinitialspace=SKIPINITIALSPACEβ specifies how to interpret whitespace which immediately follows a delimiter. It defaults toFalse, which means that whitespace immediately following a delimiter is part of the following field. π«§-l LINETERMINATOR,--lineterminator=LINETERMINATORβ specifies the character sequence which should terminate rows. π§-q QUOTING,--quoting=QUOTINGβ can take on any of the following module constants:0 = QUOTE_MINIMALmeans only when required, for example, when a field contains either thequotecharor thedelimiter.1 = QUOTE_ALLmeans that quotes are always placed around fields.2 = QUOTE_NONNUMERICmeans that quotes are always placed around fields which do not parse as integers or floating point numbers.3 = QUOTE_NONEmeans that quotes are never placed around fields. The default isQUOTE_MINIMAL.
-e ESCAPECHAR,--escapechar=ESCAPECHARβ specifies a one-character string used to escape the delimiter when quoting is set toQUOTE_NONE. πͺ-r QUOTECHAR,--quotechar=QUOTECHARβ specifies a one-character string to use as the quoting character. It defaults to". π
π EXAMPLE π
try this exact example, bestie:
csv2ods -i /etc/passwd -o accounts.odt -d:
π AUTHOR π
Agustin Henze <agustinhenze at gmail.com> β Original author of csv-ods.py. π
this page is from odfpy, dated 01/04/2009 β mwah π
π¦ where this page comes from
- opensuse-leap 16.0: python313-odfpy 1.4.2-bp160.1.11 Β· Apache-2.0 OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms