LinuxReviws.org --get your your Linux knowledge
> Linux Reviews > Manual Pages (man) >

uuencode

encode a binary file


  1. uuencode.1.man
  2. uuencode.5.man


1. uuencode.1.man

Manpage of uuencode

uuencode

Section: User Commands (1)
Index Return to Main Contents
 

NAME

uuencode - encode a binary file

uudecode - decode a file created by uuencode  

SYNOPSIS

uuencode [-m] [ file ] name

uudecode [-o outfile] [ file ]...  

DESCRIPTION

Uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other than simple ASCII data.

Uuencode reads file (or by default the standard input) and writes an encoded version to the standard output. The encoding uses only printing ASCII characters and includes the mode of the file and the operand name for use by uudecode. If name is /dev/stdout the result will be written to standard output. By default the standard UU encoding format will be used. If the option -m is given on the command line base64 encoding is used instead.

Uudecode transforms uuencoded files (or by default, the standard input) into the original form. The resulting file is named name (or outfile if the -o option is given) and will have the mode of the original file except that setuid and execute bits are not retained. If outfile or name is /dev/stdout the result will be written to standard output. Uudecode ignores any leading and trailing lines. The program can automatically decide which of the both supported encoding schemes are used.  

EXAMPLES

The following example packages up a source tree, compresses it, uuencodes it and mails it to a user on another system. When uudecode is run on the target system, the file ``src_tree.tar.Z'' will be created which may then be uncompressed and extracted into the original tree.

tar cf - src_tree | compress | uuencode src_tree.tar.Z | mail sys1!sys2!user

 

SEE ALSO

compress(1), mail(1), uucp(1), uuencode(5)  

STANDARDS

This implementation is compliant with P1003.2b/D11.  

BUGS

If more than one file is given to uudecode and the -o option is given or more than one name in the encoded files are the same the result is probably not what is expected.

The encoded form of the file is expanded by 37% for UU encoding and by 35% for base64 encoding (3 bytes become 4 plus control information).  

HISTORY

The uuencode command appeared in BSD 4.0.


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO
STANDARDS
BUGS
HISTORY

This document was created by man2html using the manual pages.
Time: 17:32:56 GMT, October 23, 2013

2. uuencode.5.man

Manpage of UUENCODE

UUENCODE

Section: File Formats (5)
Index Return to Main Contents
 

NAME

uuencode - format of an encoded uuencode file  

DESCRIPTION

Files output by uuencode(1) consist of a header line, followed by a number of body lines, and a trailer line. The uudecode(1) command will ignore any lines preceding the header or following the trailer. Lines preceding a header must not, of course, look like a header.

The header line is distinguished by having the first 6 characters begin  The word begin is followed by a mode (in octal), and a string which names the remote file. A space separates the three items in the header line.

The body consists of a number of lines, each at most 62 characters long (including the trailing newline). These consist of a character count, followed by encoded characters, followed by a newline. The character count is a single printing character, and represents an integer, 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 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 printing. 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 will be included to make the character count a multiple of 4. The body is terminated by a line with a count of zero. This line consists of one ASCII space.

The trailer line consists of end on a line by itself.  

SEE ALSO

uuencode(1), uudecode(1), uusend(1), uucp(1), mail(1)  

HISTORY

The uuencode file format appeared in BSD 4.0 .


 

Index

NAME
DESCRIPTION
SEE ALSO
HISTORY

This document was created by man2html using the manual pages.
Time: 17:32:56 GMT, October 23, 2013

ja - pl

Meet new people