1unshar(1)                        User Commands                       unshar(1)
2
3
4

NAME

6       unshar - unpack a shar archive
7

SYNOPSIS

9       unshar [-flag [value]]... [--opt-name[[=| ]value]]... [ file ... ]
10

DESCRIPTION

12       Unshar scans the input files (typically email messages) looking for the
13       start of a shell archive.  If no files are given, then  standard  input
14       is  processed  instead.  It then passes each archive discovered through
15       an invocation of the shell program to unpack it.
16

OPTIONS

18       -d dir, --directory=dir
19              change directory to dir first.
20
21              Before unpacking any files, change the current directory to dir.
22
23       -c, --overwrite
24              Overwrite any pre-existing files.
25
26              This option is passed through as an option  to  the  shar  file.
27              Many shell archive scripts accept a -c argument to indicate that
28              existing files should be overwritten.
29
30       -f, --force
31              This is an alias for the --overwrite option.
32
33       -E split-pat, --split-at=split-pat
34              separate archives on split-pat lines.
35
36              With this option, unshar isolates each different  shell  archive
37              from the others which have been placed in the same file, unpack‐
38              ing each in turn, from the beginning of the  file  to  the  end.
39              Its proper operation relies on the fact that many shar files are
40              terminated by a readily identifiable string.
41
42              For example, noticing that  most  `.signatures'  have  a  double
43              hyphen  ("--")  on  a line right before them, one can then some‐
44              times use --split-at=--.  The signature will  then  be  skipped,
45              along with the headers of the following message.
46
47       -e, --exit-0
48              split  archives  at "exit 0" lines.  This option must not appear
49              in combination with any of the following options: split-at.
50
51              Most shell archives end with a line consisting of  simply  "exit
52              0".   This option is equivalent to (and conflicts with) --split-
53              at="exit 0".
54
55       -h, --help
56              Display usage information and exit.
57
58       -!, --more-help
59              Pass the extended usage information through a pager.
60
61       -R [rcfile], --save-opts[=rcfile]
62              Save the option state to rcfile.  The default is the  last  con‐
63              figuration file listed in the OPTION PRESETS section, below.
64
65       -r rcfile, --load-opts=rcfile, --no-load-opts
66              Load  options  from  rcfile.  The no-load-opts form will disable
67              the loading of earlier RC/INI files.  --no-load-opts is  handled
68              early, out of order.
69
70       -v [{v|c|n}], --version[={v|c|n}]
71              Output  version of program and exit.  The default mode is `v', a
72              simple version.  The `c' mode will print  copyright  information
73              and `n' will print the full copyright notice.
74

OPTION PRESETS

76       Any option that is not marked as not presettable may be preset by load‐
77       ing values from configuration  ("RC"  or  ".INI")  file(s).   The  file
78       "$HOME/.sharrc" will be used, if present.
79

FILES

81       See OPTION PRESETS for configuration files.
82

EXIT STATUS

84       One of the following exit values will be returned:
85
86       0 (EXIT_SUCCESS)
87              Successful program execution.
88
89       1 (EXIT_FAILURE)
90              The operation failed or the command syntax was not valid.
91
92       66 (EX_NOINPUT)
93              A specified configuration file could not be loaded.
94
95       70 (EX_SOFTWARE)
96              libopts  had an internal operational error.  Please report it to
97              autogen-users@lists.sourceforge.net.  Thank you.
98

SEE ALSO

100       shar(1)
101

AUTHORS

103       The shar and unshar programs is the collective work  of  many  authors.
104       Many  people  contributed  by  reporting  problems,  suggesting various
105       improvements or submitting actual code.  A list of these people  is  in
106       the THANKS file in the sharutils distribution.
107
109       Copyright  (C)  1994-2013  Free  Software  Foundation,  Inc. all rights
110       reserved.  This program is released under the terms of the GNU  General
111       Public License, version 3 or later.
112

BUGS

114       Please  put  sharutils in the subject line for emailed bug reports.  It
115       helps to spot the message.
116
117       Please send bug reports to: bug-gnu-utils@gnu.org
118

NOTES

120       This manual page was AutoGen-erated from the unshar option definitions.
121
122
123
124GNU sharutils (4.13.3)            06 Jan 2013                        unshar(1)
Impressum