backward compatible processing for "+/pattern"
[unix-history] / usr / src / usr.bin / uuencode / uuencode.format.5
CommitLineData
91a0f057 1.\" @(#)uuencode.format.5 6.2 (Berkeley) %G%
7e547544 2.\"
d03ca85b 3.TH UUENCODE 5 ""
7e547544
KM
4.AT 3
5.SH NAME
6uuencode \- format of an encoded uuencode file
7.SH DESCRIPTION
8Files output by
8df5acc2 9.I uuencode(1C)
7e547544
KM
10consist of a header line,
11followed by a number of body lines,
12and a trailer line.
8df5acc2 13.I Uudecode(1C)
7e547544
KM
14will ignore any lines preceding the header or
15following the trailer.
16Lines preceding a header must not, of course,
17look like a header.
18.PP
19The header line is distinguished by having the first
206 characters \*(lqbegin\ \*(rq.
21The word
22.I begin
23is followed by a mode (in octal),
24and a string which names the remote file.
25A space separates the three items in the header line.
26.PP
27The body consists of a number of lines, each at most 62 characters
28long (including the trailing newline).
29These consist of a character count,
30followed by encoded characters,
31followed by a newline.
32The character count is a single printing character,
33and represents an integer, the number of bytes
34the rest of the line represents.
35Such integers are always in the range from 0 to 63 and can
36be determined by subtracting the character space (octal 40)
37from the character.
38.PP
39Groups of 3 bytes are stored in 4 characters, 6 bits per character.
40All are offset by a space to make the characters printing.
41The last line may be shorter than the normal 45 bytes.
42If the size is not a multiple of 3, this fact can be determined
43by the value of the count on the last line.
44Extra garbage will be included to make the character count a multiple
45of 4.
46The body is terminated by a line with a count of zero.
47This line consists of one ASCII space.
48.PP
49The trailer line consists of \*(lqend\*(rq on a line by itself.
8df5acc2
KM
50.SH "SEE ALSO"
51uuencode(1C), uudecode(1C), uusend(1C), uucp(1C), mail(1)