Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Browse - Computer Tips - How can I convert a Rich Text Format (RTF) file to HTML on the command line?
Date: 2013dec3 OS: Linux Q. How can I convert a Rich Text Format (RTF) file to HTML on the command line? A. You can use the unrtf command:unrtf --html myfile.rtf > myfile.htmlOn RedHat/Fedora/CentOS there is an "unrtf" package. unrtf isn't perfect. Instead of converting text with Heading1 style into <h1> with some css applied to used old-style <font> and other tags. It doesn't understand the text part of a hyperlink. But for basic stuff its fine. This program used to be called rtf2htm.
Add a commentSign in to add a comment