ODT2TXT(1)
π ODT2TXT π
okay bestie, sit down, because this lil cutie odt2txt is a simple converter from OpenDocument Text to plain text and honestly? it's giving underrated icon energy. no cap.
β¨ SYNOPSIS β¨
odt2txt [OPTIONS] FILENAME
πΈ DESCRIPTION πΈ
so like. odt2txt is a command-line tool that extracts the text out of OpenDocument Texts β the kind produced by OpenOffice.org, KOffice, StarOffice and others. it just yoinks the words right out of there and hands them to you. slay.
it can also pull text from some file formats that are basically OpenDocument Text's cousins, like OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. and to a lesser extent, odt2txt may be useful for extracting content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp). not its main character moment, but it'll do it. π
π«Ά heads up: the FILENAME argument is mandatory. you gotta give it a file. it's not gonna guess.
π OPTIONS π
--width=WIDTHβ wrap text lines afterWIDTHcharacters. the default value is65, which means any words that would extend beyond column 65 get moved to a new line. tidy!- if
WIDTHis set to-1then no lines will be broken. chaos mode, but make it text.
- if
--output=FILEβ write output toFILEinstead of to standard output. love a redirect moment.--subst=SUBSTβ pick which non-ascii characters get replaced by ascii look-a-likes. valid values forSUBSTareall,someandnone. the way that this one has sub-optionsβ¦ obsessed.--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, so if you didn't pick anything, this is what you're getting, bestie.--subst=noneβ substitute no characters. keep them exactly as they are. periodt.
--encoding=Xβ do not try to autodetect the terminal encoding, just convert the document to encodingXunconditionally. and if you wanna know which terminal encoding would be used in automatic mode? use--encoding=show. iykyk. π--rawβ print raw XML. straight up, no filter, just the XML.--versionβ show 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. fr fr, respect the license. π«‘
π SEE ALSO π
https://github.com/dstosberg/odt2txt
β¨ and that's the whole vibe check, bestie. this wasodt2txtversion 0.5, dated 2008-06-23, from theODT2TXT(1)manual. go forth and convert. ππ¦πΈ
π¦ where this page comes from
- debian bookworm: odt2txt 0.5-7 Β· GPL-2.0-only
- debian trixie: odt2txt 0.5-7 Β· GPL-2.0-only
- ubuntu jammy: odt2txt 0.5-7 Β· GPL-2.0-only
- ubuntu noble: odt2txt 0.5-7build1 Β· GPL-2.0-only
- ubuntu questing: odt2txt 0.5-7build1
- ubuntu resolute: odt2txt 0.5-7build2 Β· GPL-2.0-only
- ubuntu stonking: odt2txt 0.5-7build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms