3
<title>File Archiving Utilities - Untitled</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="Untitled">
6
<meta name="generator" content="makeinfo 4.11">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="System-Utilities.html#System-Utilities" title="System Utilities">
9
<link rel="prev" href="Filesystem-Utilities.html#Filesystem-Utilities" title="Filesystem Utilities">
10
<link rel="next" href="Networking-Utilities.html#Networking-Utilities" title="Networking Utilities">
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12
<meta http-equiv="Content-Style-Type" content="text/css">
13
<style type="text/css"><!--
14
pre.display { font-family:inherit }
15
pre.format { font-family:inherit }
16
pre.smalldisplay { font-family:inherit; font-size:smaller }
17
pre.smallformat { font-family:inherit; font-size:smaller }
18
pre.smallexample { font-size:smaller }
19
pre.smalllisp { font-size:smaller }
20
span.sc { font-variant:small-caps }
21
span.roman { font-family:serif; font-weight:normal; }
22
span.sansserif { font-family:sans-serif; font-weight:normal; }
28
<a name="File-Archiving-Utilities"></a>
29
Next: <a rel="next" accesskey="n" href="Networking-Utilities.html#Networking-Utilities">Networking Utilities</a>,
30
Previous: <a rel="previous" accesskey="p" href="Filesystem-Utilities.html#Filesystem-Utilities">Filesystem Utilities</a>,
31
Up: <a rel="up" accesskey="u" href="System-Utilities.html#System-Utilities">System Utilities</a>
35
<h3 class="section">35.3 File Archiving Utilities</h3>
37
<p><a name="doc_002dbunzip2"></a>
40
— Function File: <b>bunzip2</b> (<var>bzfile, dir</var>)<var><a name="index-bunzip2-2006"></a></var><br>
41
<blockquote><p>Unpack the bzip2 archive <var>bzfile</var> to the directory <var>dir</var>. If
42
<var>dir</var> is not specified, it defaults to the current directory.
46
<strong>See also:</strong> unpack, bzip2, tar, untar, gzip, gunzip, zip, unzip.
47
</p></blockquote></div>
49
<p><a name="doc_002dgzip"></a>
52
— Function File: <var>entries</var> = <b>gzip</b> (<var>files</var>)<var><a name="index-gzip-2007"></a></var><br>
53
— Function File: <var>entries</var> = <b>gzip</b> (<var>files, outdir</var>)<var><a name="index-gzip-2008"></a></var><br>
54
<blockquote><p>Compress the list of files and/or directories specified in <var>files</var>.
55
Each file is compressed separately and a new file with a '.gz' extension
56
is created. The original file is not touched. If <var>rootdir</var> is defined
57
the compressed versions of the files are placed in this directory.
61
<strong>See also:</strong> gunzip, zip, tar.
62
</p></blockquote></div>
64
<p><a name="doc_002dgunzip"></a>
67
— Function File: <b>gunzip</b> (<var>gzfile, dir</var>)<var><a name="index-gunzip-2009"></a></var><br>
68
<blockquote><p>Unpack the gzip archive <var>gzfile</var> to the directory <var>dir</var>. If
69
<var>dir</var> is not specified, it defaults to the current directory. If
70
the <var>gzfile</var> is a directory, all files in the directory will be
71
recursively gunzipped.
75
<strong>See also:</strong> unpack, bzip2, bunzip2, tar, untar, gzip, gunzip, zip, unzip.
76
</p></blockquote></div>
78
<p><a name="doc_002dtar"></a>
81
— Function File: <var>entries</var> = <b>tar</b> (<var>tarfile, files, root</var>)<var><a name="index-tar-2010"></a></var><br>
82
<blockquote><p>Pack <var>files</var> <var>files</var> into the TAR archive <var>tarfile</var>. The
83
list of files must be a string or a cell array of strings.
85
<p>The optional argument <var>root</var> changes the relative path of <var>files</var>
86
from the current directory.
88
<p>If an output argument is requested the entries in the archive are
89
returned in a cell array.
93
<strong>See also:</strong> untar, gzip, gunzip, zip, unzip.
94
</p></blockquote></div>
96
<p><a name="doc_002duntar"></a>
99
— Function File: <b>untar</b> (<var>tarfile, dir</var>)<var><a name="index-untar-2011"></a></var><br>
100
<blockquote><p>Unpack the TAR archive <var>tarfile</var> to the directory <var>dir</var>.
101
If <var>dir</var> is not specified, it defaults to the current directory.
105
<strong>See also:</strong> unpack, bzip2, bunzip2, tar, gzip, gunzip, zip, unzip.
106
</p></blockquote></div>
108
<p><a name="doc_002dzip"></a>
111
— Function File: <var>entries</var> = <b>zip</b> (<var>zipfile, files</var>)<var><a name="index-zip-2012"></a></var><br>
112
— Function File: <var>entries</var> = <b>zip</b> (<var>zipfile, files, rootdir</var>)<var><a name="index-zip-2013"></a></var><br>
113
<blockquote><p>Compress the list of files and/or directories specified in <var>files</var>
114
into the archive <var>zipfiles</var> in the same directory. If <var>rootdir</var>
115
is defined the <var>files</var> is located relative to <var>rootdir</var> rather
116
than the current directory
120
<strong>See also:</strong> unzip,tar.
121
</p></blockquote></div>
123
<p><a name="doc_002dunzip"></a>
126
— Function File: <b>unzip</b> (<var>zipfile, dir</var>)<var><a name="index-unzip-2014"></a></var><br>
127
<blockquote><p>Unpack the ZIP archive <var>zipfile</var> to the directory <var>dir</var>.
128
If <var>dir</var> is not specified, it defaults to the current directory.
132
<strong>See also:</strong> unpack, bzip2, bunzip2, tar, untar, gzip, gunzip, zip.
133
</p></blockquote></div>
135
<p><a name="doc_002dpack"></a>
138
— Function File: <b>pack</b> ()<var><a name="index-pack-2015"></a></var><br>
139
<blockquote><p>This function is provided for compatibility with <span class="sc">Matlab</span>, but it
140
doesn't actually do anything.
141
</p></blockquote></div>
143
<p><a name="doc_002dunpack"></a>
146
— Function File: <var>files</var> = <b>unpack</b> (<var>file, dir</var>)<var><a name="index-unpack-2016"></a></var><br>
147
— Function File: <var>files</var> = <b>unpack</b> (<var>file, dir, filetype</var>)<var><a name="index-unpack-2017"></a></var><br>
148
<blockquote><p>Unpack the archive <var>file</var> based on its extension to the directory
149
<var>dir</var>. If <var>file</var> is a cellstr, then all files will be
150
handled individually. If <var>dir</var> is not specified, it defaults to
151
the current directory. It returns a list of <var>files</var>
152
unpacked. If a directory is in the file list, then the
153
<var>filetype</var> to unpack must also be specified.
155
<p>The <var>files</var> includes the entire path to the output files.
159
<strong>See also:</strong> bzip2,bunzip2,tar,untar,gzip,gunzip,zip,unzip.
160
</p></blockquote></div>