LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09: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, 09: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, 10:05 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 12:46 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

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


Reply



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 12:05 PM
from html to txt/doc gawain Linux - Software 6 02-06-2007 01:58 AM
Converting from Word for Mac .doc to txt Arjuna Linux - Software 11 09-04-2006 12:04 PM
Converting PDA DOC to TXT kaaaja Linux - Laptop and Netbook 1 04-26-2005 03:48 PM
convert .doc to .txt using C++ ckamheng Programming 2 06-21-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration