LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-05-2005, 11:37 AM   #1
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Rep: Reputation: 15
opening .rtf files


Hello Everyone,

Can some one tell me about "How to convert .rtf files so that they can be viewed using a vi or an emacs editor"

Thanks in advance.
 
Old 08-05-2005, 11:46 AM   #2
warrob
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Rep: Reputation: 0
I don't know any console command that do that directly, but you could open the .rtf with any wordprocessor (OpenOffice, KOffice...), select the text, copy to clipboard and paste in any text editor (Kwrite, vi, pico...). But I expect you already thought about that... 8-|
 
Old 08-05-2005, 11:50 AM   #3
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Original Poster
Rep: Reputation: 15
Thank You.

I know that u can open that with ooffice or ooimpress. But i want to know if we could convert .rtf files so that they can be viewed with vi or emacs.

Bye.
 
Old 08-07-2005, 06:01 AM   #4
warrob
LQ Newbie
 
Registered: Aug 2005
Posts: 16

Rep: Reputation: 0
I'm not sure to understand what you mean with "convert". Let's do some clearness. Emacs and vi can read all kind of files. But if you open .rtf files you see a lot of other characters mixed with text. These characters are the format information that specifies, for examples, size, font, pictures, etc. You know that Emacs and vi don't format the text but show only the ascii content of the file. If you want to keep only the text and throw away the rest you can do as i said: Open the file with OpenOffice, go to File->Save As, select the file type "Text (.txt)", write the file name and click "OK". If you now open the file you'll se only the text without format characters.
 
Old 08-07-2005, 08:23 AM   #5
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
There's a bunch of converters out there, mainly RTF to HTML ones. You could always do it that way, view it with a browser and save it as text.
 
  


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
Converting *.doc or *.rtf to PDF files Paulo Góes Programming 7 12-08-2006 09:07 AM
Opening .db files m123 Linux - Newbie 3 09-29-2005 04:51 PM
Opening files Diederick Programming 5 06-27-2005 08:11 PM
opening files... hoffman Linux - Newbie 10 11-13-2003 12:24 PM
An easy solution for viewing rtf files? fieldmethods Linux - General 4 02-16-2003 02:25 AM

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

All times are GMT -5. The time now is 10:47 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