Modernize and expand example. Bump date.

This commit is contained in:
dholland 2008-11-29 22:42:53 +00:00
parent 2ef1dd5f7a
commit 6a8d114c5f
1 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: uuencode.1,v 1.17 2008/11/29 22:36:13 dholland Exp $
.\" $NetBSD: uuencode.1,v 1.18 2008/11/29 22:42:53 dholland Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)uuencode.1 8.1 (Berkeley) 6/6/93
.\"
.Dd September 24, 2006
.Dd November 29, 2008
.Dt UUENCODE 1
.Os
.Sh NAME
@ -95,15 +95,20 @@ utilities exits 0 on success, and \*[Gt]0 if an error occurs.
.Sh EXAMPLES
The following example packages up a source tree, compresses it,
uuencodes it and mails it to a user on another system.
When
.Nm 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.
.Pp
.Bd -literal -offset indent -compact
tar cf \- src_tree \&| compress \&|
uuencode src_tree.tar.Z \&| mail sys1!sys2!user
tar czf \- src_tree \&| uuencode src_tree.tgz \&| mail user@example.com
.Ed
.Pp
On the other system, if the user saves the mail to the file
.Pa temp ,
the following example creates the file
.Pa src_tree.tgz
and extracts it to make a copy of the original tree.
.Pp
.Bd -literal -offset indent -compact
uudecode temp
tar xzf src_tree.tgz
.Ed
.Sh SEE ALSO
.Xr compress 1 ,