Go to the previous, next section.

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:

--version
Print the version number of the program on standard output, then immediately exits.

--help
Print a help summary on standard output, then immediately exits.

Go to the previous, next section.