1 .\" $NetBSD: uuencode.1,v 1.20 2008/12/01 06:52:59 wiz Exp $
3 .\" Copyright (c) 1980, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)uuencode.1 8.1 (Berkeley) 6/6/93
38 .Nd encode/decode a binary file
46 .Op Ar encoded-file ...
51 are used to transmit binary files over transmission mediums
52 that do not support other than simple
56 The following options are available:
57 .Bl -tag -width ".Fl m"
65 (or by default the standard input) and writes an encoded version
66 to the standard output.
67 The encoding uses only printing
69 characters and includes the
70 mode of the file and the operand
78 files (or by default, the standard input) into the original form.
79 The resulting file is named
81 as recorded in the encoded file,
82 and will have the mode of the original file except that setuid
83 and execute bits are not retained; if the
85 option is specified, the data will be written to the standard output
88 ignores any leading and trailing lines.
94 utilities exits 0 on success, and \*[Gt]0 if an error occurs.
96 The following example packages up a source tree, compresses it,
97 uuencodes it and mails it to a user on another system.
99 .Bd -literal -offset indent -compact
100 tar czf \- src_tree \&| uuencode src_tree.tgz \&| mail user@example.com
103 On the other system, if the user saves the mail to the file
105 the following example creates the file
107 and extracts it to make a copy of the original tree.
109 .Bd -literal -offset indent -compact
131 utilities appeared in
134 The encoded form of the file is expanded by 35% (3 bytes become 4 plus
135 control information).