43 Folders

Back to Work

Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.

Join us via RSS, iTunes, or at 5by5.tv.

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

batch convert rtf, doc to txt

hi:

I was wondering if there is any utility to convert all my rtf and doc files to plain text .

I found rtf2txt for the command line but dont know how to do batch conversions to the hd.

thanks

TOPICS: Mac OS X
Berko's picture

Are all of the files...

Are all of the files gathered into a central directory? If so, assuming a directory foo in your documents folder

for i in 'mdfind -onlyin ~/Documents/foo .rtf'
do
textutil -convert txt i
done
for i in 'mdfind -onlyin ~/Documents/foo .doc'
do
textutil -convert txt i
done

This should work for you.

 
EXPLORE 43Folders THE GOOD STUFF

Popular
Today

Popular
Classics

An Oblique Strategy:
Honor thy error as a hidden intention


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Cranking

Merlin used to crank. He’s not cranking any more.

This is an essay about family, priorities, and Shakey’s Pizza, and it’s probably the best thing he’s written. »

Scared Shitless

Merlin’s scared. You’re scared. Everybody is scared.

This is the video of Merlin’s keynote at Webstock 2011. The one where he cried. You should watch it. »