I'm trying to build a bash script in Cygwin that will convert HTML files to RTF. In OS X this is trivial with textutils
, but that doesn't exist for regular Linux or Cygwin. Instead I'm trying to use OpenOffice from the command line.
I've read elsewhere that OpenOffice can run headlessly with a program normally installed as /usr/bin/ooffice
, but in Cygwin under Windows this obviously doesn't work—the OpenOffice installer doesn't built native Cygwin symlinks and might not even install the Windows equivalent of ooffice
.
How can I use OpenOffice from the command line in Cygwin to convert HTML files to RTF files?