On 5/22/07, Jonny Allred <[EMAIL PROTECTED]> wrote:
> I'm trying to convert a massive amount of .doc files to .txt. I found a
> few applications that can do that from the command line, like catdoc,
> which work great. Now, I just need to know how to make it convert every
> .doc file I have in a folder (there are about 3000 of them) to a .txt
> file with the same file name. Is there a way to do that from the
> command line? If there's not, would a particular programming language work?
There's probably a dozen ways to do it, but when I need to iterate
over files, I usually do something like this (I'm not sure about
catdoc's usage):
for file in *.doc
do
catdoc $file.txt
done
That should leave a bunch of files named "foobar.doc.txt". Hope it helps.
Nick
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list