uuencode, uudecode-encodes a binary file into ASCII text in order to send it through e-mail, or converts it back into its original form

 <  Day Day Up  >  

uuencode , uudecode ”encodes a binary file into ASCII text in order to send it through e-mail, or converts it back into its original form

 uuencode [ sourcefile ] filelabel uudecode [ encodedfile ] 

uuencode converts a binary file into an ASCII-encoded representation that can be sent using mail. The label argument specifies the output filename to use when decoding. If no file is given, stdin is encoded. uudecode reads an encoded file, strips off any leading and trailing lines added by mailer programs, and re-creates the original binary data with the filename and the mode and owner specified in the header. The encoded file is an ordinary ASCII text file; it can be edited by any text editor. But it is best only to change the mode or file label in the header to avoid corrupting the decoded binary.

Example A.68.
 1   uuencode mybinfile decodedname > uumybinfile.tosend 2   uudecode uumybinfile.tosend 

EXPLANATION

  1. The first argument, mybinfile , is the existing file to be encoded. The second argument is the name to be used for the uudecoded file, after mailing the file, and uumybinfile.tosend is the file that is sent through the mail.

  2. This decodes the uuencoded file and creates a filename as given as the second argument to uuencode .

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net