LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .doc to .txt conversion (http://www.linuxquestions.org/questions/linux-newbie-8/doc-to-txt-conversion-641201/)

vaalu 05-09-2008 09:29 PM

.doc to .txt conversion
 
hello
i have written a script in perl that reads from a file and counts the number of occurences of a particular word.now the file that i have to read is of the microsoft office document format..but in my system the script works well with text files but not with files of the .doc format.i tried to copy the contents of the file to gedit but i couldnt do that..and i am not able to open the file when i try to open it using gedit..could any one tell me how to convert the .doc file to .txt file in linux???
thanks

vaalu 05-09-2008 09:34 PM

i exactly dont know whether the file is .doc format..i think so because it opens with abiword processor..Actually the extension of the file was .log.....the file is the output of a software check performed in a windows platform..
thank you

bigrigdriver 05-09-2008 10:05 PM

It you can open the file with OpenOffice.org Writer, go to File - Save As - and select .txt as the file type. Abiword should also offer .txt in the Save As file type.

H_TeXMeX_H 05-10-2008 12:46 PM

I usually use this:
http://wvware.sourceforge.net/


All times are GMT -5. The time now is 03:24 AM.