Unpack a shell archive (shar file). unshar scans mail messages looking for the start of a shell archive. It then passes the archive through a copy of the shell to unpack it. unshar accepts multiple files. If no files are given, standard input is used.
Overwrite existing files.
Change to directory before unpacking any files.
Sequentially unpack multiple archives stored in same file. This uses the clue that many shar files are terminated by an exit 0 at the beginning of a line. (Equivalent to -E “exit 0“.)
Like -e, but allows you to specify the string that separates archives.
Same as -c.
Print help message and then exit.
Print the version number and then exit.