Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unshar(1) — 386BSD 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

shar(1)

UNSHAR(1)

NAME

unshar − unpack a shar file

SYNOPSIS

unshar [ −d directory ] [ −c ] [ −e | −E exit_line ] [ file ... ]

DESCRIPTION

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 3.52.3. 

The −d option tells unshar to change directory before unpacking any files. 

The −c option is passed through to ’sh’ as a parameter to the unpacked script.  Many archive shar scripts (including those produced by shar 3.40 and newer) use this to indicate that existing files should be overwritten. 

Unshar can unpack shar files that are concatenated in one file with the −e option, which separates files by recognizing the "exit 0" string at the beginning of a line.  The −E option allows you to specify the string that separates archives if "exit 0" isn’t appropriate. (Hint: most .signatures have a "−−" on a line right before them). −e is equivalent to −E "exit 0". 

SEE ALSO

shar(1)

DIAGNOSTICS

Any message from the shell may be displayed. 

AUTHORS

Michael Mauldin at Carnegie-Mellon University
guido@mcvax (Guido van Rossum at CWI, Amsterdam)
davidsen@sixhub.uuxp (Bill Davidsen)
wht%n4hgf@gatech.edu (Warren Tucker)
rhg@CPS.COM (Richard H. Gumpertz)
colas@avahi.inria.fr (Colas Nahaboo)
 man pages:
jhd@irfu.se (Jan Dj{rv)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026