public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* More scripting help
@  Chris Norman
   ` Levi Campbell
  0 siblings, 1 reply; 22+ messages in thread
From: Chris Norman @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Hi people,
I want to change all the RTF files on my computer into TXT ones. I tried the 
following:

for FILE in `locate *.rtf`
do
{
unrtf --nopics --text '$FILE' >'$FILE.txt'
rm -f $FILE
}
done

But I have a problem, unrtf says there's an error opening the file, but it 
won't give me a name, so I don't know if my variable is getting asigned 
properly, I just know that for every file, I get a "Can't open file" error.

Any ideas?

Cheers.

PS: I would also like to avoid (if at all possible) the crap that unrtf puts 
into the resulting text file, is this possible?

Cheers,

Chris Norman
<!-- chris.norman4@ntlworld.com --> 



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 More scripting help Chris Norman
 ` Levi Campbell
   ` Chris Norman
     ` Levi Campbell
       ` Chris Norman
     ` text editors with elinks or links? Karen Lewellen
       ` Trevor Astrope
         ` Karen Lewellen
           ` Trevor Astrope
             ` Karen Lewellen
           ` Gregory Nowak
         ` Karen Lewellen
           ` Kirk Reiser
             ` Karen Lewellen
             ` propaine
               ` Kirk Reiser
                 ` Steve Holmes
               ` chuckh
               ` Karen Lewellen
   ` Good irc servers Marvin Rush
     ` Nick G
     ` ace

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).