uudecode(1) uudecode(1)
NAME
uudecode - decode mailed files
SYNOPSIS
uudecode[ file]
DESCRIPTION
uuencode and uudecode are used in combination to send a text or binary
file via uucp or mail. You can send the file either directly or via a
mail chain linking a series of directly linked systems.
uudecode reads an encoded file and recreates the original file with
the access permissions (file modes) and name specified in the encoding
information (see uuencode).
You must have write permission for the encoded file.
uudecode runs with the user ID assigned to uucp. Thus permission to
use uudecode may be denied in a directory where there is no write per-
mission for "others".
Refer to uuencode for further information.
OPTION
file File to be decoded.
file not specified:
uudecode reads from standard input.
LOCALE
The LCMESSAGES environment variable governs the language in which
message texts are displayed. If LCMESSAGES is undefined or is defined
as the null string, it defaults to the value of LANG. If LANG is like-
wise undefined or null, the system acts as if it were not internation-
alized.
The LCALL environment variable governs the entire locale. LCALL
takes precedence over all the other environment variables which affect
internationalization.
Page 1 Reliant UNIX 5.44 Printed 11/98
uudecode(1) uudecode(1)
EXAMPLES
User bill has been mailed an encoded file:
$ mail
From john Wed Mar 20 14:42 MET 1991
ContentLength
begin 744 scrpt
M9F]R(&YA;64@*:6X@*@ID;R @:68@6R M9" B)&YA;64B(%T*(" @('!H)&X@
M)&-H;R B*&1V>BD@)&YA;64B" @("!;'-E(&%C:&\@(B!@;',@+7,@)&YA
1;65@(@H@(" @)FD*9&]N90HB
end
? q
The header line of the encoded message contains the word begin fol-
lowed by the file mode (744) and the name of the file (scrpt). The
file is now to be restored to its original condition and have the
specified name scrpt:
$ mail | uudecode
$ cat scrpt
for name in *
do if [ -d "$name" ]
then echo "(dir) $name"
else echo " `ls -s $name`"
fi
done
SEE ALSO
mail(1), mailx(1), uucp(1), uuencode(1), uux(1).
Page 2 Reliant UNIX 5.44 Printed 11/98