Can anyone recommend software (preferably freeware) for batch converting rtf files to txt files on Unix?

link|improve this question
What format do you want the txt files to be? Stripped of all formatting, or somewhat richer, e.g. Markdown, like this site supports? – Daniel Beck Feb 8 '11 at 17:19
feedback

3 Answers

There is "unrtf", but while the Ubuntu package data claims that it can create text output, the GNU unrtf homepage does not mention that format. But perhaps you can try that.

link|improve this answer
feedback

A quick glance at an RTF file suggests that RTF markup is anything between {braces} and anything between a backslash and a space \markup. So maybe strings and a short sed/awk/perl script to delete markup would get you close to plain text.

link|improve this answer
feedback

You didn't mention what flavour of UNIX but I think there's a textutil on many.

http://www.unix.com/man-page/All/1/TEXTUTIL/

 -convert fmt  Convert the specified files to the indicated format and
       write each one back to the file system.

       fmt is one of:  txt, html, rtf, rtfd, doc, docx, wordml,
               odt, or webarchive
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.