CSV2ODS(1)

πŸ“¦ version 1.4.2, in opensuse-leap 16.0

🌸 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 to utf-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 to False, 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_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. The default is QUOTE_MINIMAL.
  • -e ESCAPECHAR, --escapechar=ESCAPECHAR β€” specifies a one-character string used to escape the delimiter when quoting is set to QUOTE_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