LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-09-2008, 10:29 PM   #1
vaalu
Member
 
Registered: Jun 2007
Posts: 54

Rep: Reputation: 15
.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
 
Old 05-09-2008, 10:34 PM   #2
vaalu
Member
 
Registered: Jun 2007
Posts: 54

Original Poster
Rep: Reputation: 15
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
 
Old 05-09-2008, 11:05 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,795

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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.
 
Old 05-10-2008, 01:46 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I usually use this:
http://wvware.sourceforge.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cmd line to convert .doc and .xls to .txt ? frenchn00b Linux - General 2 04-15-2013 01:05 PM
from html to txt/doc gawain Linux - Software 6 02-06-2007 02:58 AM
Converting from Word for Mac .doc to txt Arjuna Linux - Software 11 09-04-2006 01:04 PM
Converting PDA DOC to TXT kaaaja Linux - Laptop and Netbook 1 04-26-2005 04:48 PM
convert .doc to .txt using C++ ckamheng Programming 2 06-21-2003 09:25 AM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration