LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2010, 08:33 AM   #1
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Rep: Reputation: 16
Batch Convert Linux Text Format to RTF?


I have a bunch of text files that I created with mousepad in xfce. I didn't really think I would need to share them, but I guess I have to. Is there anyway I can batch convert these to rtf so they could be viewed on a windows client?
 
Old 08-27-2010, 09:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by Super TWiT View Post
I have a bunch of text files that I created with mousepad in xfce. I didn't really think I would need to share them, but I guess I have to. Is there anyway I can batch convert these to rtf so they could be viewed on a windows client?
A quick Google search turns up txt2rtf:
http://hackage.haskell.org/package/txt2rtf

CLI utility to do text to rtf conversion.
 
Old 08-27-2010, 09:22 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Windows can view plain text files. Just convert the line endings.
 
Old 08-27-2010, 09:43 AM   #4
Super TWiT
Member
 
Registered: Oct 2009
Location: Cyberville
Distribution: Debian
Posts: 132

Original Poster
Rep: Reputation: 16
Actually, I didn't realize it but abiword will do this via the command line!! All I did was change to the directory my files were in and:
Code:
abiword to=rtf *
Brilliantly, everything was converted to rtf. No line encoding to mess with! Some files were in .doc, some linux text, and some already rtf. Now, everything is uniformly rtf!!! Briliant! It will convert to many formats, and will convert anything abiword can read. Thank you briliant developers!!! The whole thing took less than 2 minutes to convert 70 good sized files.

Last edited by Super TWiT; 08-27-2010 at 09:46 AM.
 
Old 08-27-2010, 01:37 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by Super TWiT View Post
Actually, I didn't realize it but abiword will do this via the command line!! All I did was change to the directory my files were in and:
Code:
abiword to=rtf *
Brilliantly, everything was converted to rtf. No line encoding to mess with! Some files were in .doc, some linux text, and some already rtf. Now, everything is uniformly rtf!!! Briliant! It will convert to many formats, and will convert anything abiword can read. Thank you briliant developers!!! The whole thing took less than 2 minutes to convert 70 good sized files.
That's something worth knowing...thanks for sharing the solution. Wasn't aware that abiword could do that.
 
  


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
Convert RTF to PDF hypernetics Linux - Software 6 04-04-2014 04:46 AM
How to convert OS/2 icons to LINUX format in batch mode? kaza Linux - Software 1 04-23-2010 02:12 PM
Software to batch convert CBR, CBZ files to PDF format JTAL604622 Linux - Software 1 06-11-2007 06:33 PM
how to convert wordpad(rtf) doc to linux text file? kpachopoulos Linux - General 2 10-28-2005 10:53 AM
Converting PDF to text, rtf doc format saurya_s Linux - Software 2 06-16-2005 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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