Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 15
.doc to .txt conversion

i have written a script in perl that reads from a file and counts the number of occurences of a particular 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???
Old 05-09-2008, 09:34 PM   #2
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
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 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
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:


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 PM.

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