Name

unshar

Synopsis

unshar [options] [files]

Description

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.

Options

-c, --overwrite

Overwrite existing files.

-d directory, --directory=directory

Change to directory before unpacking any files.

-e, --exit-0

Sequentially unpack multiple archives stored in same file; uses clue that many shar files are terminated by an exit 0 at the beginning of a line. (Equivalent to -E “exit 0“.)

-E string, --split-at=string

Like -e, but allows you to specify the string that separates archives.

-f, --force

Same as -c.

--help

Print help message and then exit.

--version

Print the version number and then exit.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.