Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

closed as off topic by terdon, ChrisF, 8088, Windos, Dennis Jan 29 '13 at 1:03

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the 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

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.

share|improve this answer

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

 -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
share|improve this answer
That's only available on OS X. Check the bottom of the man page. – Ross Light Dec 3 '12 at 21:43

There are many different ones, here are the ones I've tested successfully (all open source and free):

  • unrtf
  • wv
  • unoconv
share|improve this answer
antiword doesn't work with rtf documents, as far as i can tell. – dino Jun 14 '15 at 18:05
@dino: You are right, my mistake. – Thor Jun 15 '15 at 0:03

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .