home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
gnu
/
sharutils-4.1-src.lha
/
sharutils-4.1
/
sharutils.info
(
.txt
)
< prev
next >
Wrap
GNU Info File
|
1994-11-06
|
20KB
|
398 lines
This is Info file sharutils.info, produced by Makeinfo-1.55 from the
input file sharutils.texi.
START-INFO-DIR-ENTRY
* Shar utilities: (sharutils).
GNU set of shar utilities.
* shar invocation: (sharutils) shar invocation.
Produce a shell archive out of many files.
* unshar invocation: (sharutils) unshar invocation.
Recontruct files out of a shell archive.
END-INFO-DIR-ENTRY
This file documents the GNU set of shar utilities.
Copyright (C) 1994 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided that
the entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
translation approved by the Foundation.
File: sharutils.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
GNU `shar' utilities
********************
GNU `shar' makes so-called shell archives out of many files,
preparing them for transmission by electronic mail services. GNU
`unshar' helps unpacking shell archives after reception. This is
release 4.1.
* Menu:
* Introduction:: Introduction to both programs
* shar invocation:: Invoking the `shar' program
* unshar invocation:: Invoking the `unshar' program
* Miscellaneous:: Miscellaneous considerations
-- The Detailed Node Listing --
Creating shell archives
* Selecting:: Selecting files
* Splitting:: Splitting output
* Headers:: Controlling the shar headers
* Stocking:: Selecting how files are stocked
* Transmission:: Protecting against transmission
* Kinds:: Producing different kinds of shar
File: sharutils.info, Node: Introduction, Next: shar invocation, Prev: Top, Up: Top
Introduction to both programs
*****************************
GNU `shar' makes so-called shell archives out of many files,
preparing them for transmission by electronic mail services. A "shell
archive" is a collection of files that can be unpacked by `/bin/sh'. A
wide range of features provide extensive flexibility in manufacturing
shars and in specifying shar *smartness*. *Note shar invocation::.
GNU `unshar' scans mail messages looking for the start of a shell
archive. This removes the mail headers and any lines of
correspondence. The body of the archive is then unpacked by a copy of
the shell. It can process multiple files at once. It may also process
files containing concatenated shell archives. *Note unshar
invocation::.
GNU `shar' has a long history. All along this long road, numerous
users contributed various improvements. The file `THANKS', from the
GNU `shar' distribution, contain all names still having valid email
addresses, as far as we know.
Please help me getting the history straight, for the following
information is approximative. James Gosling wrote the public domain
`shar 1.x'. William Davidsen rewrote it as `shar 2.x'. Warren Tucker
brought modifications and called it `shar 3.x'. Richard Gumpertz
maintained it until 1990. Franc,ois Pinard, from the public domain
`shar 3.49', made `GNU shar 4.x', in 1994. Some modules and other code
sections were freely borrowed from other GNU distributions, bringing
this `shar' under the terms of the GNU General Public License.
Your feedback helps us to make a better and more portable product.
Mail suggestions and bug reports (including documentation errors) for
these programs to `bug-gnu-utils@prep.ai.mit.edu'.
File: sharutils.info, Node: shar invocation, Next: unshar invocation, Prev: Introduction, Up: Top
Invoking the `shar' program
***************************
The format of the `shar' command is one of:
shar [ OPTION ] ... FILE ...
shar -S [ OPTION ] ...
In the first form, the file list is given as command arguments. In
the second form, the file list is read from standard input. The
resulting archive is sent to standard output unless the `-o' option is
given.
Options can be given in any order. Some options depend on each
other: the `-o' option is required if the `-l' or `-L' option is used.
The `-n' option is required if the `-a' option is used. Also see `-V'
below.
Some options are special purpose:
`--help'
Print a help summary on standard output, then immediately exits.
`--version'
Print the version number of the program on standard output, then
immediately exits.
`--quiet'
Verbose *off* at `shar' time. Messages are usually issued on
standard error to let the user follow the progress, while making
the archives. This option inhibits these messages.
* Menu:
* Selecting:: Selecting files
* Splitting:: Splitting output
* Headers:: Controlling the shar headers
* Stocking:: Selecting how files are stocked
* Transmission:: Protecting against transmission
* Kinds:: Producing different kinds of shar
File: sharutils.info, Node: Selecting, Next: Splitting, Prev: shar invocation, Up: shar invocation
Selecting files
===============
`--intermix-type'
Allow positional parameter options. The options `-M', `-B', `-T',
`-z' and `-Z' may be embedded, and files to the right of the
option will be processed in the specified mode. Without the `-p'
option, embedded options would be interpreted as filenames. *Note
Stocking:: for more information on these options.
`--stdin-file-list'
Read list of files to be packed from the standard input rather
than from the command line. Input must be one filename per line.
This switch is especially useful when the command line will not
hold the list of files to be packed. For example:
find . -type f -print | shar -S -o /tmp/big.shar
If `-p' is specified on the command line, then the options `-M',
`-B', `-T', `-z' and `-Z' may be included in the standard input
(on a line separate from filenames). The maximum number of lines
of standard input, file names and options, may not exceed 1024.
File: sharutils.info, Node: Splitting, Next: Headers, Prev: Selecting, Up: shar invocation
Splitting output
================
`-o PREFIX'
`--output-prefix=PREFIX'
Save the archive to files `PREFIX.01' through `PREFIX.NNN' instead
of standard output. This option *must* be used when the `-l' or
the `-L' switches are used.
`-l SIZE'
`--whole-size-limit=SIZE'
Limit the output file size to SIZE times 1024 bytes but don't
split input files. This allows the recipient of the shell archives
to unpack them in any order.
`-L SIZE'
`--split-size-limit=SIZE'
Limit output file size to SIZE times 1024 bytes and split files if
necessary. The archives created with this option must be unpacked
in the correct order. If the recipient of the shell archives
wants to put all of them in a single folder, she shall save them
in the correct order for `unshar', used with option `-e', to
unpack them all at once. *Note unshar invocation::.
For people used to saving all the shell archives into a single mail
folder, care must be taken to save them in the appropriate order.
For those having the appropriate tools (like Masanobu Umeda's
`rmailsort' package for GNU Emacs), shell archives can be saved in
any order, then sorted by increasing date (or send time) before
massive unpacking.
File: sharutils.info, Node: Headers, Next: Stocking, Prev: Splitting, Up: shar invocation
Controlling the shar headers
============================
`-n NAME'
`--archive-name=NAME'
Na