Converting text formats with OS X terminal

It is handy to be able to convert from one text format to another.

It is probably very common that the ‘right tool for the job’ is not often applied with it comes to digital files. This is likely because of impatience and being unfamiliar with the proper tool.

I have seen several instances where someone will load up a word processor, waiting several seconds for it to get to a ready state, and then fuss with opening menu after menu to try and accomplish converting the file.

This seems inefficient and cumbersome.

With the OS X operating system it is a snap to accomplish this type of task using a command line tool called ‘textutil’.

This ‘textutil’ can write out as txt, html, rtf, rtfd, doc, docx, wordml, odt, or webarchive.

Personally I have many times written a web page html and want to make a rtf document.

Open the Terminal (an easy way is to begin to type terminal in Spotlight) and enter:

textutil -convert FORMAT path-to-the-original-document

Replace FORMAT with txt, html, rtf, rtfd, doc, docx, wordml, odt, or webarchive.

This will place the converted file in the same directory as the original  file.