File: File-Archiving-Utilities.html

package info (click to toggle)
octave3.2 3.2.4-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 62,936 kB
  • ctags: 37,353
  • sloc: cpp: 219,497; fortran: 116,336; ansic: 10,264; sh: 5,508; makefile: 4,245; lex: 3,573; yacc: 3,062; objc: 2,042; lisp: 1,692; awk: 860; perl: 844
file content (199 lines) | stat: -rw-r--r-- 11,953 bytes parent folder | download
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
<html lang="en">
<head>
<title>File Archiving Utilities - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="System-Utilities.html#System-Utilities" title="System Utilities">
<link rel="prev" href="Filesystem-Utilities.html#Filesystem-Utilities" title="Filesystem Utilities">
<link rel="next" href="Networking-Utilities.html#Networking-Utilities" title="Networking Utilities">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<p>
<a name="File-Archiving-Utilities"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Networking-Utilities.html#Networking-Utilities">Networking Utilities</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Filesystem-Utilities.html#Filesystem-Utilities">Filesystem Utilities</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="System-Utilities.html#System-Utilities">System Utilities</a>
<hr>
</div>

<h3 class="section">34.3 File Archiving Utilities</h3>

<!-- ./miscellaneous/bunzip2.m -->
<p><a name="doc_002dbunzip2"></a>

<div class="defun">
&mdash; Function File:  <b>bunzip2</b> (<var>bzfile, dir</var>)<var><a name="index-bunzip2-2349"></a></var><br>
<blockquote><p>Unpack the bzip2 archive <var>bzfile</var> to the directory <var>dir</var>.  If
<var>dir</var> is not specified, it defaults to the current directory. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dunpack.html#doc_002dunpack">unpack</a>, <a href="doc_002dbzip2.html#doc_002dbzip2">bzip2</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>, <a href="doc_002duntar.html#doc_002duntar">untar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/gzip.m -->
   <p><a name="doc_002dgzip"></a>

<div class="defun">
&mdash; Function File: <var>entries</var> = <b>gzip</b> (<var>files</var>)<var><a name="index-gzip-2350"></a></var><br>
&mdash; Function File: <var>entries</var> = <b>gzip</b> (<var>files, outdir</var>)<var><a name="index-gzip-2351"></a></var><br>
<blockquote><p>Compress the list of files and/or directories specified in <var>files</var>. 
Each file is compressed separately and a new file with a '.gz' extension
is created.  The original files are not touched.  Existing compressed
files are silently overwritten.  If <var>outdir</var> is defined the compressed
versions of the files are placed in this directory. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dbzip2.html#doc_002dbzip2">bzip2</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/gunzip.m -->
   <p><a name="doc_002dgunzip"></a>

<div class="defun">
&mdash; Function File:  <b>gunzip</b> (<var>gzfile, dir</var>)<var><a name="index-gunzip-2352"></a></var><br>
<blockquote><p>Unpack the gzip archive <var>gzfile</var> to the directory <var>dir</var>.  If
<var>dir</var> is not specified, it defaults to the current directory.  If
the <var>gzfile</var> is a directory, all files in the directory will be
recursively gunzipped. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dunpack.html#doc_002dunpack">unpack</a>, <a href="doc_002dbunzip2.html#doc_002dbunzip2">bunzip2</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>, <a href="doc_002duntar.html#doc_002duntar">untar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/tar.m -->
   <p><a name="doc_002dtar"></a>

<div class="defun">
&mdash; Function File: <var>entries</var> = <b>tar</b> (<var>tarfile, files, root</var>)<var><a name="index-tar-2353"></a></var><br>
<blockquote><p>Pack <var>files</var> <var>files</var> into the TAR archive <var>tarfile</var>.  The
list of files must be a string or a cell array of strings.

        <p>The optional argument <var>root</var> changes the relative path of <var>files</var>
from the current directory.

        <p>If an output argument is requested the entries in the archive are
returned in a cell array. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002duntar.html#doc_002duntar">untar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/untar.m -->
   <p><a name="doc_002duntar"></a>

<div class="defun">
&mdash; Function File:  <b>untar</b> (<var>tarfile, dir</var>)<var><a name="index-untar-2354"></a></var><br>
<blockquote><p>Unpack the TAR archive <var>tarfile</var> to the directory <var>dir</var>. 
If <var>dir</var> is not specified, it defaults to the current directory. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dunpack.html#doc_002dunpack">unpack</a>, <a href="doc_002dbunzip2.html#doc_002dbunzip2">bunzip2</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/zip.m -->
   <p><a name="doc_002dzip"></a>

<div class="defun">
&mdash; Function File: <var>entries</var> = <b>zip</b> (<var>zipfile, files</var>)<var><a name="index-zip-2355"></a></var><br>
&mdash; Function File: <var>entries</var> = <b>zip</b> (<var>zipfile, files, rootdir</var>)<var><a name="index-zip-2356"></a></var><br>
<blockquote><p>Compress the list of files and/or directories specified in <var>files</var>
into the archive <var>zipfiles</var> in the same directory.  If <var>rootdir</var>
is defined the <var>files</var> is located relative to <var>rootdir</var> rather
than the current directory
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/unzip.m -->
   <p><a name="doc_002dunzip"></a>

<div class="defun">
&mdash; Function File:  <b>unzip</b> (<var>zipfile, dir</var>)<var><a name="index-unzip-2357"></a></var><br>
<blockquote><p>Unpack the ZIP archive <var>zipfile</var> to the directory <var>dir</var>. 
If <var>dir</var> is not specified, it defaults to the current directory. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dunpack.html#doc_002dunpack">unpack</a>, <a href="doc_002dbunzip2.html#doc_002dbunzip2">bunzip2</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>, <a href="doc_002duntar.html#doc_002duntar">untar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/pack.m -->
   <p><a name="doc_002dpack"></a>

<div class="defun">
&mdash; Function File:  <b>pack</b> ()<var><a name="index-pack-2358"></a></var><br>
<blockquote><p>This function is provided for compatibility with <span class="sc">matlab</span>, but it
doesn't actually do anything. 
</p></blockquote></div>

<!-- ./miscellaneous/unpack.m -->
   <p><a name="doc_002dunpack"></a>

<div class="defun">
&mdash; Function File: <var>files</var> = <b>unpack</b> (<var>file, dir</var>)<var><a name="index-unpack-2359"></a></var><br>
&mdash; Function File: <var>files</var> = <b>unpack</b> (<var>file, dir, filetype</var>)<var><a name="index-unpack-2360"></a></var><br>
<blockquote><p>Unpack the archive <var>file</var> based on its extension to the directory
<var>dir</var>.  If <var>file</var> is a cellstr, then all files will be
handled individually.  If <var>dir</var> is not specified, it defaults to
the current directory.  It returns a list of <var>files</var>
unpacked.  If a directory is in the file list, then the
<var>filetype</var> to unpack must also be specified.

        <p>The <var>files</var> includes the entire path to the output files. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dbunzip2.html#doc_002dbunzip2">bunzip2</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>, <a href="doc_002duntar.html#doc_002duntar">untar</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dgunzip.html#doc_002dgunzip">gunzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dunzip.html#doc_002dunzip">unzip</a>. 
</p></blockquote></div>

<!-- ./miscellaneous/bzip2.m -->
   <p><a name="doc_002dbzip2"></a>

<div class="defun">
&mdash; Function File: <var>entries</var> = <b>bzip2</b> (<var>files</var>)<var><a name="index-bzip2-2361"></a></var><br>
&mdash; Function File: <var>entries</var> = <b>bzip2</b> (<var>files, outdir</var>)<var><a name="index-bzip2-2362"></a></var><br>
<blockquote><p>Compress the list of files specified in <var>files</var>. 
Each file is compressed separately and a new file with a '.bz2' extension
is created.  The original files are not touched.  Existing compressed files
are silently overwritten.If <var>outdir</var> is defined the compressed versions
of the files are placed in this directory. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dbunzip2.html#doc_002dbunzip2">bunzip2</a>, <a href="doc_002dgzip.html#doc_002dgzip">gzip</a>, <a href="doc_002dzip.html#doc_002dzip">zip</a>, <a href="doc_002dtar.html#doc_002dtar">tar</a>. 
</p></blockquote></div>

   </body></html>