unshar [ -d directory ] [ -c ][-e | -E exit_line ] [ 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. It will accept multiple files. If no files are given, standard input is used. This manual page reflects unshar version 4.0.
Options have a one-letter version starting with – or a long version starting with –. The exceptions are –help and –version, which
|–version||Print the version number of the program on standard output, then immediately exit.|
|–help||Print a help summary on standard output, then immediately exit.|
|-d||DIRECTORY Change directory to DIRECTORY|
|–directory=DIRECTORY||before unpacking any files.|
|-c –overwrite||Passed as an option to the
|-e –exit-0||This option exists mainly for people who collect many shell archives into a single mail folder. With this option, unshar isolates each different shell archive from the others that have been put in the same file, unpacking each in turn, from the beginning of the file towards its end. Its proper operation relies on the fact that many
Option -e is internally equivalent to -E “exit 0”.
|-E STRING –split-at=STRING||This option works