uuencode(4) CLIX uuencode(4)
NAME
uuencode - Format of a file encoded with uuencode
DESCRIPTION
An encoded file produced by the uuencode command consists of a header
line, a number of body lines, and a trailer line. The uudecode command
will ignore any lines preceding the header or following the trailer. Any
lines preceding a header line must not have the same format as the header
line.
The header line contains the string begin, a mode (in octal), and a string
which names the remote file. Each of these items is separated by a space.
The body consists of a number of lines, each no more than 62 characters
long (including the trailing newline). Each line consists of a character
count followed by encoded characters and ending in a newline. The
character count is a single printing character, and represents an integer
indicating the number of bytes the rest of the line represents. Such
integers are always in the range from 0 to 63, and can be determined by
subtracting the value of the character space (octal 40) from the
character.
Groups of 3 bytes are stored in 4 characters, 6 bits per character. All
are offset by a space to make the characters printable. The last line may
be shorter than the normal 45 bytes. If the size is not a multiple of 3,
this fact can be determined by the value of the count on the last line.
Extra garbage is included to make the character count a multiple of 4.
The body is terminated by a line with a count of zero, consisting of one
ASCII space.
The trailer line contains only the string end.
RELATED INFORMATION
Commands: uuencode(1), uudecode(1), uucp(1), mail(1)
2/94 - Intergraph Corporation 1