[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] uuencode/decode
On Monday 15 Mar 2010 18:35:48 Jean-Luc CECCOLI 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 ?
Something like the following command should do the trick, executed within the
directory with the files to uudecode:
find . -type f -print0 | xargs -0 uud.ttp
Hope this helps,
JFL
--
Jean-François Lemaire