Annotation of 43BSDReno/usr.bin/shar/shar.1, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1990 The Regents of the University of California.
                      2: .\" All rights reserved.
                      3: .\"
                      4: .\" Redistribution and use in source and binary forms are permitted provided
                      5: .\" that: (1) source distributions retain this entire copyright notice and
                      6: .\" comment, and (2) distributions including binaries display the following
                      7: .\" acknowledgement:  ``This product includes software developed by the
                      8: .\" University of California, Berkeley and its contributors'' in the
                      9: .\" documentation or other materials provided with the distribution and in
                     10: .\" all advertising materials mentioning features or use of this software.
                     11: .\" Neither the name of the University nor the names of its contributors may
                     12: .\" be used to endorse or promote products derived from this software without
                     13: .\" specific prior written permission.
                     14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     17: .\"
                     18: .\"     @(#)shar.1     5.2 (Berkeley) 6/24/90
                     19: .\"
                     20: .TH SHAR 1 "%Q"
                     21: .UC 7
                     22: .SH NAME
                     23: shar \- create a shell archive of files
                     24: .SH SYNOPSIS
                     25: .nf
                     26: .ft B
                     27: shar file ...
                     28: .ft R
                     29: .fi
                     30: .SH DESCRIPTION
                     31: .I Shar
                     32: writes an
                     33: .IR sh (1)
                     34: shell script to the standard output which will recreate the file
                     35: hierarchy specified by the command line operands.
                     36: Directories will be recreated and must be specified before the
                     37: files they contain.
                     38: .PP
                     39: .I Shar
                     40: is normally used for distributing small numbers of files by
                     41: .IR ftp (1)
                     42: or
                     43: .IR mail (1).
                     44: .SH SEE ALSO
                     45: compress(1), mail(1), uuencode(1), tar(1)
                     46: .SH BUGS
                     47: .I Shar
                     48: makes no provisions for special types of files or files containing
                     49: magic characters.
                     50: .PP
                     51: It is easy to insert trojan horses into
                     52: .I shar
                     53: files.
                     54: It is strongly recommended that all shell archive files be examined
                     55: before running them through
                     56: .IR sh (1).
                     57: Archives produced using this implementation of
                     58: .I shar
                     59: may be easily examined with the command:
                     60: .sp
                     61: .RS
                     62: grep -v '^X' program.shar
                     63: .RE
                     64: .SH EXAMPLES
                     65: To create a shell archive of the program
                     66: .IR ls (1)
                     67: and mail it to Rick:
                     68: .sp
                     69: .RS
                     70: cd ls
                     71: .br
                     72: shar `find . -print` | mail -s "ls source" rick
                     73: .RE
                     74: .sp
                     75: To recreate the program directory:
                     76: .sp
                     77: .RS
                     78: mkdir ls
                     79: .br
                     80: cd ls
                     81: .br
                     82: <delete header lines and examine mailed archive>
                     83: .br
                     84: sh archive
                     85: .RE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.