[KLUG Members] Re: Can uuencode pass multiple files -- "just for it"
Bryan J. Smith
members@kalamazoolinux.org
03 May 2002 11:02:06 -0400
On Fri, 2002-05-03 at 09:45, Patrick McGovern wrote:
> I am trying to use the uuencode command to pass multiple files
> to the mailx command, like this:
> uuencode $PATH/file_name*.rpt file_name*.rpt | mailx -s "files are
> attached" "$mail_address"
> The uuencode command does not seem to allow the filename expansion.
> Is there a way to send multiple files with uuencode?
When in doubt, yell "for" ...
for i in `find . $PATH/file_name*.rpt`; do
uuencode ${i} ${i} >> file_all.rpt.uue
done
cat file_all.rpt.uue | mailx -s "files are attached" "$mail_address"
-- Bryan
Documented XML formats, never Standards-based, pop-up free,
lose old files again, Office: privacy-guaranteed browsing:
http://www.openoffice.org http://www.mozilla.org
--------------------------------------------------------------
Bryan J. Smith, SmithConcepts, Inc. mailto:b.j.smith@ieee.org
Engineers and IT Professionals http://www.SmithConcepts.com