~ubuntu-branches/debian/sid/octave3.0/sid

« back to all changes in this revision

Viewing changes to doc/interpreter/HTML/File-Archiving-Utilities.html

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2007-12-23 16:04:15 UTC
  • Revision ID: james.westby@ubuntu.com-20071223160415-n4gk468dihy22e9v
Tags: upstream-3.0.0
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html lang="en">
 
2
<head>
 
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; } 
 
23
--></style>
 
24
</head>
 
25
<body>
 
26
<div class="node">
 
27
<p>
 
28
<a name="File-Archiving-Utilities"></a>
 
29
Next:&nbsp;<a rel="next" accesskey="n" href="Networking-Utilities.html#Networking-Utilities">Networking Utilities</a>,
 
30
Previous:&nbsp;<a rel="previous" accesskey="p" href="Filesystem-Utilities.html#Filesystem-Utilities">Filesystem Utilities</a>,
 
31
Up:&nbsp;<a rel="up" accesskey="u" href="System-Utilities.html#System-Utilities">System Utilities</a>
 
32
<hr>
 
33
</div>
 
34
 
 
35
<h3 class="section">35.3 File Archiving Utilities</h3>
 
36
 
 
37
<p><a name="doc_002dbunzip2"></a>
 
38
 
 
39
<div class="defun">
 
40
&mdash; 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.
 
43
        <pre class="sp">
 
44
     
 
45
     </pre>
 
46
     <strong>See also:</strong> unpack, bzip2, tar, untar, gzip, gunzip, zip, unzip. 
 
47
</p></blockquote></div>
 
48
 
 
49
   <p><a name="doc_002dgzip"></a>
 
50
 
 
51
<div class="defun">
 
52
&mdash; Function File: <var>entries</var> = <b>gzip</b> (<var>files</var>)<var><a name="index-gzip-2007"></a></var><br>
 
53
&mdash; 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.
 
58
        <pre class="sp">
 
59
     
 
60
     </pre>
 
61
     <strong>See also:</strong> gunzip, zip, tar. 
 
62
</p></blockquote></div>
 
63
 
 
64
   <p><a name="doc_002dgunzip"></a>
 
65
 
 
66
<div class="defun">
 
67
&mdash; 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.
 
72
        <pre class="sp">
 
73
     
 
74
     </pre>
 
75
     <strong>See also:</strong> unpack, bzip2, bunzip2, tar, untar, gzip, gunzip, zip, unzip. 
 
76
</p></blockquote></div>
 
77
 
 
78
   <p><a name="doc_002dtar"></a>
 
79
 
 
80
<div class="defun">
 
81
&mdash; 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.
 
84
 
 
85
        <p>The optional argument <var>root</var> changes the relative path of <var>files</var>
 
86
from the current directory.
 
87
 
 
88
        <p>If an output argument is requested the entries in the archive are
 
89
returned in a cell array.
 
90
        <pre class="sp">
 
91
     
 
92
     </pre>
 
93
     <strong>See also:</strong> untar, gzip, gunzip, zip, unzip. 
 
94
</p></blockquote></div>
 
95
 
 
96
   <p><a name="doc_002duntar"></a>
 
97
 
 
98
<div class="defun">
 
99
&mdash; 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.
 
102
        <pre class="sp">
 
103
     
 
104
     </pre>
 
105
     <strong>See also:</strong> unpack, bzip2, bunzip2, tar, gzip, gunzip, zip, unzip. 
 
106
</p></blockquote></div>
 
107
 
 
108
   <p><a name="doc_002dzip"></a>
 
109
 
 
110
<div class="defun">
 
111
&mdash; Function File: <var>entries</var> = <b>zip</b> (<var>zipfile, files</var>)<var><a name="index-zip-2012"></a></var><br>
 
112
&mdash; 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
 
117
        <pre class="sp">
 
118
     
 
119
     </pre>
 
120
     <strong>See also:</strong> unzip,tar. 
 
121
</p></blockquote></div>
 
122
 
 
123
   <p><a name="doc_002dunzip"></a>
 
124
 
 
125
<div class="defun">
 
126
&mdash; 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.
 
129
        <pre class="sp">
 
130
     
 
131
     </pre>
 
132
     <strong>See also:</strong> unpack, bzip2, bunzip2, tar, untar, gzip, gunzip, zip. 
 
133
</p></blockquote></div>
 
134
 
 
135
   <p><a name="doc_002dpack"></a>
 
136
 
 
137
<div class="defun">
 
138
&mdash; 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>
 
142
 
 
143
   <p><a name="doc_002dunpack"></a>
 
144
 
 
145
<div class="defun">
 
146
&mdash; Function File: <var>files</var> = <b>unpack</b> (<var>file, dir</var>)<var><a name="index-unpack-2016"></a></var><br>
 
147
&mdash; 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.
 
154
 
 
155
        <p>The <var>files</var> includes the entire path to the output files.
 
156
        <pre class="sp">
 
157
     
 
158
     </pre>
 
159
     <strong>See also:</strong> bzip2,bunzip2,tar,untar,gzip,gunzip,zip,unzip. 
 
160
</p></blockquote></div>
 
161
 
 
162
   </body></html>
 
163