ODT2TXT(1)
β¨ NAME β¨
okay so bestie, meet odt2txt β your new fave little converter that turns OpenDocument Text into plain text. literally a glow-up for your files π
πΈ SYNOPSIS πΈ
odt2txt [OPTIONS] FILENAME
π¦ DESCRIPTION π¦
So odt2txt is this iconic command-line tool that justβ¦ extracts the text out of OpenDocument Texts. Like the kind OpenOffice.org, KOffice, StarOffice and the whole friend group of office suites produce. she's a text ripper. it's giving main character energy π₯
And bestie, she's versatile! odt2txt can also pull text from some file formats that are similar to OpenDocument Text β like OpenOffice.org XML (*.sxw), which was the whole vibe back in OpenOffice.org version 1.x and older StarOffice versions. And to a lesser extent (lowkey, don't expect miracles), odt2txt may be useful to extract content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp). no cap, she tries her best π
Oh and heads up: the FILENAME argument is mandatory. like, you cannot skip it. she needs to know which file to slay π
π OPTIONS π
--width=WIDTHβ wraps your text lines afterWIDTHcharacters. the default value is65, which means any words that would extend beyond column 65 get moved to a new line. she likes her lines tidy β¨
if WIDTH is set to -1, then no lines will be broken. wild. freeform. chaos. love that for you π¦
--output=FILEβ writes the output toFILEinstead of to standard output. like, take it somewhere nice π--subst=SUBSTβ picks which non-ascii characters get replaced by ascii look-a-likes. valid values forSUBSTareall,someandnone:--subst=allβ substitute all characters for which substitutions are known π--subst=someβ substitute all characters which the output charset does not contain. this is the default π«Ά--subst=noneβ substitute no characters, periodt π
--encoding=Xβ don't try to autodetect the terminal encoding, just convert the document to encodingXunconditionally. and to find out which terminal encoding will be used in automatic mode, use--encoding=showπ--rawβ print raw XML. raw. unfiltered. no makeup π--raw-inputβ the input file is a raw XML (fodt,fods, ...) π--versionβ shows version and copyright information β
π COPYRIGHT π
Copyright Β© 2006,2007 Dennis Stosberg <dennis@stosberg.net> Uses parts of the kunzip library, Copyright 2005,2006 by Michael Kohn
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
(translation: it's free software, be nice, share it around, that's the whole vibe π)
π SEE ALSO π
okay that's the whole page bestie, go convert something iconic π β¨
odt2txt 0.5 Β· 2008-06-23 β vintage but still ate, mwah π«Άπ
π¦ where this page comes from
- alpine 3.24: odt2txt-doc 0.5_git20170928-r1 Β· GPL-2.0-only
- arch rolling: odt2txt 0.5-6 Β· GPL2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms