HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

u
uuencode(1) uuencode(1)
uuencode -m abc xyz > outfile
The following example shows how to encode and send a compiled program
foo to user friend:
uuencode foo foo | mailx -s new_program friend
After receiving the mail message, user friend
can decode the program to a file with the same name as
the original file by first saving the message in a file
foo.mail and executing the command:
uudecode foo.mail
Similarly, the user friend can also decode the program to a file named
foo.output by first saving
the message in a file
foo.mail and executing the command:
uudecode -o foo.output foo.mail
WARNINGS
The file is expanded by 35% (three bytes become four plus control information) causing it to take longer to
transmit.
The user on the remote system who is invoking
uudecode (often uucp) must have write permission for
the specified file.
If an encoded file has the same name as the destination name specified in it,
uudecode starts overwriting
the encoded file before decoding is completed.
SEE ALSO
elm(1), mail(1), mailx(1), shar(1), uucp(1), uux(1), uuencode(4).
STANDARDS CONFORMANCE
uuencode,uudecode: XPG4, POSIX.2
376 Hewlett-Packard Company 3 HP-UX 11i Version 3: February 2007