From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta07-winn.ispmail.ntl.com ([81.103.221.47] helo=mtaout01-winn.ispmail.ntl.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1FXQw2-0001hT-00 for ; Sat, 22 Apr 2006 18:50:38 -0400 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060422225007.AUW29343.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Sat, 22 Apr 2006 23:50:07 +0100 Received: from sparky ([86.20.72.172]) by aamtaout01-winn.ispmail.ntl.com with SMTP id <20060422225007.LKKT19763.aamtaout01-winn.ispmail.ntl.com@sparky> for ; Sat, 22 Apr 2006 23:50:07 +0100 Message-ID: <001d01c6665f$1cde6120$1d02a8c0@sparky> From: "Chris Norman" To: "Speakup is a screen review system for Linux." References: <000b01c6665d$882278b0$1d02a8c0@sparky><4a202ad70604221543k51d7b449t48c03c451ea918c5@mail.gmail.com><001401c6665e$58634ea0$1d02a8c0@sparky> <4a202ad70604221548u69bacc5ao7299473051c8e0ad@mail.gmail.com> Subject: Re: More scripting help Date: Sat, 22 Apr 2006 23:50:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.8rc1 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 22:50:38 -0000 Cheers. Chris Norman ----- Original Message ----- From: "Levi Campbell" To: "Speakup is a screen review system for Linux." 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 wrote: >> Bash. >> >> Cheers, >> >> Chris Norman >> >> ----- Original Message ----- >> From: "Levi Campbell" >> To: "Speakup is a screen review system for Linux." >> >> Sent: Saturday, April 22, 2006 11:43 PM >> Subject: Re: More scripting help >> >> >> > what shell are you using? >> > >> > On 4/22/06, Chris Norman 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 >> >> >> >> >> >> >> >> _______________________________________________ >> >> 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