Charles.Forsyth20060303-partialeea662d19 years agoHistory
79 lines · 1.8 KB · Text
RawDownload
.TH UUENCODE 1 .SH NAMEuuencode, uudecode \- encode/decode a file.SH SYNOPSIS.B uuencode[.I sourcefile] .I remotefile.PP.B uudecode[.B -p][.I encodedfile ...].SH DESCRIPTION.I Uuencodeand.I Uudecodeare used to transmit files over transmission mediums that do not support other than simpleASCII data..PP.I Uuencodeconverts a file to a purely ASCII based representation. It encodes the contents of.I sourcefileor the standard input if no source file is given. The .I remotefileis included in the encoded file's header  as the name of the file into which.I uudecodeshould place the decoded data. The header also includes the permission modes of thesource file so that these  can be preserved on decoding. The encoded output of.I uuencodeis sent to the standard output..PP.I Uudecodereads a file, ignoring any leading and trailing lines that are not part of the encoding, andrecreates the original file with the filename and mode specified in it's header. The fileto decode is .I encodedfileor standard input if none is given. The .B -pflag can be used to send the decoded data to standard output rather than saving it inthe file whose name is specified in the header..SH EXAMPLES.PPEncode a dis file limbo.dis so that it can be included in a mail message:.IP.EX uuencode limbo.dis limbo.dis > tmp<place in mail message and send to recipient>.EE.PPDecode the mail message(msg say):.IP.EXcat msg | uudecode.EE.PPThis creates the file limbo.dis..PPDecode the mail message into a file of your choosing(tmp.dis say):.IP.EXcat msg | uudecode -p > tmp.dis.EE.SH SOURCE.B /appl/cmd/uuencode.b.br.B /appl/cmd/uudecode.b.SH BUGSThe encoded file is expanded by at least a third..brDecoding a file may overwrite an existing file..brUuencode should take the remote file name to be the same as the source file if oneis not given.