1uudecode(1) User Commands uudecode(1)
2
3
4
6 uudecode - decode an encoded file
7
9 uudecode [-flags] [-flag [value]] [--option-name[[=| ]value]]
10 [<file>...]
11
12 If no file(s) are provided, then standard input is decoded.
13
15 uudecode transforms uuencoded files into their original form.
16
17 The encoded file(s) may be specified on the command line, or one may be
18 read from standard input. The output file name is specified in the
19 encoded file, but may be overridden with the -o option. It will have
20 the mode of the original file, except that setuid and execute bits are
21 not retained. If the output file is specified to be /dev/stdout or -,
22 the result will be written to standard output. If there are multiple
23 input files and the second or subsquent file specifies standard output,
24 the decoded data will be written to the same file as the previous out‐
25 put. Don't do that.
26
27 uudecode ignores any leading and trailing lines. It looks for a line
28 that starts with "begin" and proceeds until the end-of-encoding marker
29 is found. The program determines from the header line of the encoded
30 file which of the two supported encoding schemes was used and whether
31 or not the output file name has been encoded with base64 encoding. See
32 uuencode(5).
33
35 -o file, --output-file=file
36 direct output to file.
37
38 If specified, decoded data are written to this file. When mul‐
39 tiple inputs are specified on the command line, this option can‐
40 not be specified. All decoded data must be written to the file
41 name encoded in the data.
42
43 -c, --ignore-chmod
44 ignore fchmod(3P) errors.
45
46 By default, if the output file permissions cannot be changed to
47 the permissions specified in the encoded data, the file will not
48 be written out and execution stops. This option will cause that
49 error to be ignored. The resulting file will have all the data,
50 but the incorrect mode settings.
51
52 fchmod() errors are also ignored if POSIXLY_CORRECT is set in
53 the environment. RE: http://austingroupbugs.net/view.php?id=635
54
55 A warning is always emitted when fchmod() fails.
56
57 -h, --help
58 Display usage information and exit.
59
60 -!, --more-help
61 Pass the extended usage information through a pager.
62
63 -R [cfgfile], --save-opts [=cfgfile]
64 Save the option state to cfgfile. The default is the last con‐
65 figuration file listed in the OPTION PRESETS section, below.
66 The command will exit after updating the config file.
67
68 -r cfgfile, --load-opts=cfgfile, --no-load-opts
69 Load options from cfgfile. The no-load-opts form will disable
70 the loading of earlier config/rc/ini files. --no-load-opts is
71 handled early, out of order.
72
73 -v [{v|c|n --version [{v|c|n}]}]
74 Output version of program and exit. The default mode is `v', a
75 simple version. The `c' mode will print copyright information
76 and `n' will print the full copyright notice.
77
79 Any option that is not marked as not presettable may be preset by load‐
80 ing values from configuration ("RC" or ".INI") file(s). The file
81 "$HOME/.sharrc" will be used, if present.
82
84 This implementation is compliant with P1003.2b/D11.
85
87 See OPTION PRESETS for configuration files.
88
90 One of the following exit values will be returned:
91
92 0 (EXIT_SUCCESS)
93 Successful program execution.
94
95 1 (EXIT_OPTION_ERROR)
96 The command options were misconfigured.
97
98 2 (EXIT_INVALID)
99 (warning) One or more input files contained no valid data
100
101 4 (EXIT_NO_INPUT)
102 (warning) The specified input file was not found
103
104 8 (EXIT_NO_OUTPUT)
105 The specified output file could not be created (error); or else
106 one of the output files could not be written or its access mode
107 could not be changed (warnings). The accompanying message(s)
108 will distinguish.
109
110 9 (EXIT_NO_MEM)
111 No process memory available
112
113 66 (EX_NOINPUT)
114 A specified configuration file could not be loaded.
115
116 70 (EX_SOFTWARE)
117 libopts had an internal operational error. Please report it to
118 autogen-users@lists.sourceforge.net. Thank you.
119
120 The exit status codes are (mostly) warning codes. As such, each
121 code is "or"-ed into the final exit code as the input files are
122 processed. For example, an exit code of '6' is not listed
123 above. It is the sum of EXIT_INVALID and EXIT_NO_INPUT. It
124 would mean that at least one input file contained invalid data
125 and also at least one input file could not be found at all.
126
128 uuencode(1), uuencode(5)
129
131 Free Software Foundation, Inc.
132
134 Copyright (C) 1994-2015 Free Software Foundation, Inc. all rights
135 reserved. This program is released under the terms of the GNU General
136 Public License, version 3 or later.
137
139 Please put sharutils in the subject line for emailed bug reports. It
140 helps to spot the message.
141
142 If more than one name in the encoded files are the same, or if the sec‐
143 ond or following input files specifies standard output for the output
144 file, then the result is probably not what is expected. Specifically,
145 standard output will be appended to and named output files will be
146 replaced.
147
148 Please send bug reports to: bug-gnu-utils@gnu.org
149
151 This manual page was AutoGen-erated from the uudecode option defini‐
152 tions.
153
154
155
156GNU sharutils (4.15.2) 30 May 2015 uudecode(1)