1tar(n)                         Tar file handling                        tar(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tar - Tar file creation, extraction & manipulation
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require tar  ?0.2?
14
15       ::tar::contents tarball
16
17       ::tar::stat tarball ?file?
18
19       ::tar::untar tarball args
20
21       ::tar::get tarball fileName
22
23       ::tar::create tarball files args
24
25       ::tar::add tarball files args
26
27       ::tar::remove tarball files
28
29_________________________________________________________________
30

DESCRIPTION

32       ::tar::contents tarball
33              Returns a list of the files contained in tarball.
34
35
36       ::tar::stat tarball ?file?
37              Returns a nested dict containing information on the named ?file?
38              in tarball, or all files. the top level are  pairs  of  filename
39              and info. The info is a dict in the form mode uid gid size mtime
40              type linkname uname gname devmajor devminor
41
42              % ::tar::stat tarball.tar
43              foo.jpg {mode 0644 uid 1000 gid 0 size 7580 mtime 811903867 type file linkname {} uname user gname wheel devmajor 0 devminor 0}
44
45
46       ::tar::untar tarball args
47              Extracts tarball
48
49              -dir dirName
50
51              -file fileName
52
53              -glob pattern
54
55              -nooverwrite
56
57              -nomtime
58
59              -noperms
60
61
62       ::tar::get tarball fileName
63              Returns the contents of fileName from the tarball
64
65
66       ::tar::create tarball files args
67              Creates a new tar file containing the files
68
69              -dereference
70
71
72       ::tar::add tarball files args
73              Appends files to the end of the existing tarball
74
75              -dereference
76
77
78       ::tar::remove tarball files
79              Removes files from the tarball
80

KEYWORDS

82       archive, tape archive, tar
83
84
85
86tar                                   0.2                               tar(n)
Impressum