[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] uuencode/decode



On Tue, Mar 16, 2010 at 4:35 AM, Jean-Luc CECCOLI
<Jean-Luc.Ceccoli@wanadoo.fr> wrote:
> On Sun, 14 Mar 2010 23:25:25 -0600, Paul Wratt <paul.wratt@gmail.com> wrote:
>>
>> On Sat, Mar 13, 2010 at 6:53 AM, Jean-Luc CECCOLI
>> <Jean-Luc.Ceccoli@wanadoo.fr> wrote:
>> > Hello all,
>> >
>> > I need to uudecode some files in a directory.../..
>> >
>> I presume you tried:
>> ./uud.ttp /path/to/filename.u
>
> I even put files to process into the same folder as uud.ttp, then
> set it as current and typed uud.ttp *, but with no success.
>>
>> from the folder with the ttp. Also remember that you can drop the
>> tos/ttp extension by renaming it, for use with a shell (bash, sh, etc)
>
> Er... that means that renaming uud.ttp to uud and moving it to bin
> directory would allow me to invoque it directly from the shell ?
> Anyway, as I wrote previously, it crashes after each decoded file,
> so it will be very fastidious to process the ~80 files... :-(
> Helmut sent me a little utility that works fine, except whatever the
> amount of files in the directory, it only processes the first one
> and exits. Maybe building a little script that explores the directory
> and processes each file it finds... is this possible from within Bash ?
>
uudtool.sh
-----------------------------------------------------------------
#!/bin/bash

FILES=`ls -1`
for FILE in $FILES
do
	uud.ttp $FILE
done
-----------------------------------------------------------------
> Regards,
>
> J.-Luc
>
if the script crashes, place the ttp line in another script with the
bash line and replace the ttp line with:
	newscript.sh $FILE

hope that helps.

Paul