1UNSHAR(1)                   General Commands Manual                  UNSHAR(1)
2
3
4

NAME

6       unshar - unpack a shar file
7

SYNOPSIS

9       unshar [ options ] [ file ... ]
10

DESCRIPTION

12       Unshar  scans  mail  messages looking for the start of a shell archive.
13       It then passes the archive through a copy of the shell  to  unpack  it.
14       It  will  accept multiple files.  If no files are given, standard input
15       is used.
16

OPTIONS

18       Options have a one letter version starting with -  or  a  long  version
19       starting  with  --.   The exception is --help and --version, which does
20       not have a short version.
21
22       --version
23              Print the version number of the program on standard output, then
24              immediately exits.
25
26       --help Print a help summary on standard output, then immediately exits.
27
28       -d DIRECTORY  --directory=DIRECTORY
29              Change directory to DIRECTORY before unpacking any files.
30
31       -c  --overwrite
32              Passed  as  an  option  to  the  shar  file.  Many shell archive
33              scripts (including those produced  by  `shar'  3.40  and  newer)
34              accepts  a -c argument to indicate that existing files should be
35              overwritten.
36
37       -e  --exit-0
38              This option exists mainly for people who collect many shell  ar‐
39              chives  into  a  single mail folder.  With this option, `unshar'
40              isolates each different shell archive from the others which have
41              been  put  in  the  same  file, unpacking each in turn, from the
42              beginning of the file towards its  end.   Its  proper  operation
43              relies  on  the  fact  that  many shar files are terminated by a
44              `exit 0' at the beginning of a line.
45
46              Option -e is internally equivalent to -E "exit 0".
47
48       -E STRING  --split-at=STRING
49              This option works like -e, but it  allows  you  to  specify  the
50              string that separates archives if `exit 0' isn't appropriate.
51
52              For  example,  noticing that most `.signatures' have a `--' on a
53              line right before them, one can  sometimes  use  `--split-at=--'
54              for  splitting  shell  archives  which lack the `exit 0' line at
55              end.  The signature will then be  skipped  altogether  with  the
56              headers of the following message.
57
58       -f  --force
59              The same as -c.
60

SEE ALSO

62       shar(1)
63

DIAGNOSTICS

65       Any message from the shell may be displayed.
66

AUTHORS

68       The  shar  and  unshar programs is the collective work of many authors.
69       Many people  contributed  by  reporting  problems,  suggesting  various
70       improvements  or  submitting actual code.  A list of these people is in
71       the THANKS file in the sharutils distribution.
72

REPORTING BUGS

74       Report bugs to <bug-gnu-utils@gnu.org>.  Please put  sharutils  in  the
75       subject line.  It helps to spot the message.
76
77
78
79                              September 10, 1995                     UNSHAR(1)
Impressum