1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
|
'\" t
.\" tardy - a tar post-processor
.\" Copyright (C) 1993, 1995, 1996, 1999, 2002-2004 Peter Miller;
.\" All rights reserved.
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
.\"
.\" MANIFEST: manual page describing the tardy command.
.\"
.ds n) tardy
.TH \*(n) 1
.SH NAME
\*(n) \- a tar post-processor
.SH SYNOPSIS
.B \*(n)
[
.IR option \&...
][
.IR infile
[
.IR outfile
]]
.br
.B \*(n)
.B -Help
.br
.B \*(n)
.B -VERSion
.SH DESCRIPTION
The
.I \*(n)
program is used to manipulate the file headers within
.IR tar (1)
archive files.
.PP
This is useful when preparing sources for Internet archive sites,
and you don't want to included details of your development environment
in the
.IR tar (1)
file.
.PP
One of the most useful features is the ability to add a prefix to the
names of the files within the
.IR tar (1)
file.
An example is adding the prefix ".",
for when you have a
.IR tar (1)
file with absolute paths in it,
and need to extract the file with relative paths.
.PP
The GNU tar format headers are understood,
including extended names.
.PP
If no input file is named,
or the special name "-" is used,
input will be read from the standard input.
Similarly,
if no output file is named,
or the special name "-" is used,
output will be written to the standard output.
.SH OPTIONS
The following options are understood:
.TP 8n
\fB\-Block_Size\fP \fInumber\fP
Thsi option many be used to specify the block size, as a multiple of
512 bytes. The default is \f[CW]-bs=20\fP resulting in a 10KB block size.
.TP 8n
.B -Clean_Meta
.br
This option may be used to
ensure that file names do not contain shell meta characters.
If any are found, they are replaced by a hyphen (-) character.
Warning: duplicate file names may result.
.TP 8n
.B -Clean_Print
.br
This option may be used to
ensure that file names only contain printable ascii characters.
If any non-printable characters are found,
they are replaced by a hyphen (-) character.
Warning: duplicate file names may result.
.TP 8n
.B -Clean_Space
.br
This option may be used to
ensure that file names contain no white space characters.
If any are found, they are replaced by a hyphen (-) character.
Warning: duplicate file names may result.
.TP 8n
.B -Clean
.br
This option is a terse way of specifying all of the above 3 options.
.TP 8n
.B -DownCase
.br
This option may be used to
force file names to be all lower case.
Warning: duplicate file names may result.
.TP 8n
\fB-Group\fP \fIarg\fP
.br
This option may be used to set both
the group name and group number fields
in the header of every file in the archive file.
The argument may be either a string or a number.
It is an error if a corresponding entry cannot be found in the
.I /etc/group
file.
.TP 8n
\fB-Group_NAme\fP \fIstring\fP
.br
This option is used to
set the group name field in the header
of every file in the archive file.
The string may be any arbitrary string,
it is not restricted to a known group.
.TP 8n
\fB-Group_NAme\fP \fInumber\fP
.br
This option is used to
set the group name field in the header
of every file in the archive file.
The number is mapped to a group name through the
.I /etc/group
file.
It is an error if a corresponding group cannot be found.
.TP 8n
\fB-Group_NUmber\fP \fIstring\fP
.br
This option is used to
set the group number field in the header
of every file in the archive file.
The string is mapped to a group number through the
.I /etc/group
file.
It is an error if a corresponding group cannot be found.
.TP 8n
\fB-Group_NUmber\fP \fInumber\fP
.br
This option is used to
set the group number field in the header
of every file in the archive file.
The number may be any arbitrary number,
it is not restricted to a known group.
.so o_help.so
.TP 8n
\fI\-Input_ForMaT\fP \fIname\fP
.RS
This option may be used to specify the input format to be used.
The input \fIname\fPs are
.TP 8n
tar
This format understands all of the various \fItar\fP(1) formats.
This is the default.
.TP 8n
list
The input is a text file which contains one file name per line.
The named files are read as if they were the input.
It is common for \fIfind\fP(1) to be used to form the list of file names.
.PP
Any other format name will produce an error.
.RE
.TP 8n
.B -List
.br
Give a terse listing of the file headers on the standard error
as they are written to the output.
.TP 8n
.B -No_Directories
.br
This option may be used to supress directories
from the output.
This can be useful when the archive has been created with
directories in useless modes.
.TP 8n
\fB-Mode_Clear\fP \fIbits\fP
.br
This option may be used to
set the mode of each file in the archive file.
The
.I bits
specified are cleared in the mode.
You should use an octal number with a leading zero as the argument;
if you omit the leading zero it will be interpreted as decimal.
The
.B -Mode_Set
option is applied first,
the
.B -Mode_Clear
option is applied specond;
if neither is specified the mode of each file is unaltered.
.TP 8n
\fB-Mode_Set\fP \fIbits\fP
.br
This option may be used to set the
mode of each file in the archive file.
The
.I bits
specified are set in the mode.
You should use an octal number with a leading zero as the argument;
if you omit the leading zero it will be interpreted as decimal.
.TP 8n
.B -Now
.br
Set the last-time-modified field of the headers to the current time,
all files will be giben the same time.
.TP 8n
.B -Old_Type
.br
By default,
\*(n) corrects the old normal file
type into the modern normal file type.
This option requests that old normal file
type indicators remain unaltered.
.TP 8n
\fB\-Output_ForMaT\fP \fIname\fP
.RS
This option may be used to specify the output format to be used.
The output \fIname\fPs are
.TP 8n
ustar
The format that GNU tar uses.
This is the default.
.TP 8n
tar-bsd
The format that BSD \fItar\fP(1) uses.
.TP 8n
cpio
The new \fIcpio\fP(1) ASCII format.
.TP 8n
cpio-old-ascii
The old \fIcpio\fP(1) ASCII format.
.TP 8n
v7
The ancient UNIX V7 \fItar\fP(1) format.
.PP
Any other format name will produce an error.
.RE
.TP 8n
\fB-Prefix\fP \fIstring\fP
.br
This option is used to add a prefix directory name to the
name of every file in the archive file.
.TP 8n
\fB\-PROgress\fP
This option is used to obtain a progress indicator.
Only works in combination with the \fI\-\-ifmt=list\fP option.
.\" ------------------------------------------------------------------------
.TP 8n
\fB-Remove_Prefix\fP \fInumber\fP
.br
This option is used to remove a number of leading directories from
the name of every file in the archive file,
if present.
The prefixes will be removed before any prefix specified by the
.B -Prefix
option is prepended.
.\" ------------------------------------------------------------------------
.TP 8n
\fB-Remove_Prefix\fP \fIstring\fP
.RS
This option is used to remove a prefix directory name from
the name of every file in the archive file,
if present.
This option may be given more than once,
and as many of the prefixes as appear will be removed.
The prefixes will be removed before any prefix specified by the
.B -Prefix
option is prepended.
.PP
This option is potentially ambiguous with the preceeding option, if you
wish to remove a leading prefix which looks like a number. If this is
the case, add a slash ("/") to the end of the prefix to stop it looking
like a number.
.RE
.\" ------------------------------------------------------------------------
.TP 8n
.B -UpCase
.br
This option may be used to
force file names to be all upper case.
Warning: duplicate file names may result.
.TP 8n
\fB-User\fP \fIarg\fP
.br
This option may be used to set both
the user name and user number fields
in the header of every file in the archive file.
The argument may be either a string or a number.
It is an error if a corresponding entry cannot be found in the
.I /etc/passwd
file.
.TP 8n
\fB-User_NAme\fP \fIstring\fP
.br
This option is used to
set the user name field in the header of every file in the archive file.
The string may be any arbitrary string,
it is not restricted to a known user.
.TP 8n
\fB-User_NAme\fP \fInumber\fP
.br
This option is used to
set the user name field in the header of every file in the archive file.
The number is mapped to a user name through the
.I /etc/passwd
file.
It is an error if a corresponding user cannot be found.
.TP 8n
\fB-User_NUmber\fP \fIstring\fP
.br
This option is used to
set the user number field in the header of
every file in the archive file.
The string is mapped to a user number through the
.I /etc/passwd
file.
It is an error if a corresponding user cannot be found.
.TP 8n
\fB-User_NUmber\fP \fInumber\fP
.br
This option is used to
set the user number field in the header
of every file in the archive file.
The number may be any arbitrary number,
it is not restricted to a known user.
.TP 8n
.B -VERSion
.br
Print the version of the
.I \*(n)
program being executed.
.so o__rules.so
.so z_exit.so
.so z_cr.so
|