From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta08-winn.ispmail.ntl.com ([81.103.221.48] helo=mtaout02-winn.ispmail.ntl.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1FXQl5-0001NN-00 for ; Sat, 22 Apr 2006 18:39:19 -0400 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20060422223848.HXBG29040.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Sat, 22 Apr 2006 23:38:48 +0100 Received: from sparky ([86.20.72.172]) by aamtaout03-winn.ispmail.ntl.com with SMTP id <20060422223848.FPOT16286.aamtaout03-winn.ispmail.ntl.com@sparky> for ; Sat, 22 Apr 2006 23:38:48 +0100 Message-ID: <000b01c6665d$882278b0$1d02a8c0@sparky> From: "Chris Norman" To: "Speakup is a screen review system for Linux." Subject: More scripting help Date: Sat, 22 Apr 2006 23:38:50 +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:39:19 -0000 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