Catxdoc is a bash script to extract plain text (in UTF-8) from .docx files to stdout (in one line). The requirements other than bash are the "file", "unzip", and "sed" commands.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.