public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Chris Norman" <cnorman@rnibncw.ac.uk>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: More scripting help
Date: Sat, 22 Apr 2006 23:50:09 +0100	[thread overview]
Message-ID: <001d01c6665f$1cde6120$1d02a8c0@sparky> (raw)
In-Reply-To: <4a202ad70604221548u69bacc5ao7299473051c8e0ad@mail.gmail.com>

Cheers.

Chris Norman
<!-- chris.norman4@ntlworld.com -->
----- Original Message ----- 
From: "Levi Campbell" <levicc00123@gmail.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Saturday, April 22, 2006 11:48 PM
Subject: Re: More scripting help


> then you would do this as follows:
>
> for FILE in 'locate *.rtf'; do unrtf --nopics --text '$FILE'
>>'$FILE.txt' && rm -f $FILE; done
>
> On 4/22/06, Chris Norman <cnorman@rnibncw.ac.uk> wrote:
>> Bash.
>>
>> Cheers,
>>
>> Chris Norman
>> <!-- chris.norman4@ntlworld.com -->
>> ----- Original Message -----
>> From: "Levi Campbell" <levicc00123@gmail.com>
>> To: "Speakup is a screen review system for Linux." 
>> <speakup@braille.uwo.ca>
>> Sent: Saturday, April 22, 2006 11:43 PM
>> Subject: Re: More scripting help
>>
>>
>> > what shell are you using?
>> >
>> > On 4/22/06, Chris Norman <cnorman@rnibncw.ac.uk> wrote:
>> >> 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 -->
>> >>
>> >>
>> >> _______________________________________________
>> >> Speakup mailing list
>> >> Speakup@braille.uwo.ca
>> >> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>> >>
>> >
>> > _______________________________________________
>> > Speakup mailing list
>> > Speakup@braille.uwo.ca
>> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>>
>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup@braille.uwo.ca
>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup 



  reply	other threads:[~ UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Chris Norman
 ` Levi Campbell
   ` Chris Norman
     ` Levi Campbell
       ` Chris Norman [this message]
     ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001d01c6665f$1cde6120$1d02a8c0@sparky' \
    --to=cnorman@rnibncw.ac.uk \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).