(octave.info)File Archiving Utilities
36.3 File Archiving Utilities
=============================
-- : FILELIST = bunzip2 (BZFILE)
-- : FILELIST = bunzip2 (BZFILE, DIR)
Unpack the bzip2 archive BZFILE.
If DIR is specified the files are unpacked in this directory rather
than the one where BZFILE is located.
The optional output FILELIST is a list of the uncompressed files.
See also: Note: bzip2, Note: unpack, Note:
gunzip, Note: unzip, Note: untar.
-- : FILELIST = gzip (FILES)
-- : FILELIST = gzip (FILES, DIR)
Compress the list of files and directories specified in FILES.
FILES is a character array or cell array of strings. Shell
wildcards in the filename such as ‘*’ or ‘?’ are accepted and
expanded. Each file is compressed separately and a new file with a
‘".gz"’ extension is created. The original files are not modified,
but existing compressed files will be silently overwritten. If a
directory is specified then ‘gzip’ recursively compresses all files
in the directory.
If DIR is defined the compressed files are placed in this
directory, rather than the original directory where the
uncompressed file resides. Note that this does not replicate a
directory tree in DIR which may lead to files overwriting each
other if there are multiple files with the same name.
If DIR does not exist it is created.
The optional output FILELIST is a list of the compressed files.
See also: Note: gunzip, Note: unpack, Note:
bzip2, Note: zip, Note: tar.
-- : FILELIST = gunzip (GZFILE)
-- : FILELIST = gunzip (GZFILE, DIR)
Unpack the gzip archive GZFILE.
If GZFILE is a directory, all gzfiles in the directory will be
recursively unpacked.
If DIR is specified the files are unpacked in this directory rather
than the one where GZFILE is located.
The optional output FILELIST is a list of the uncompressed files.
See also: Note: gzip, Note: unpack, Note:
bunzip2, Note: unzip, *note untar:
XREFuntar.
-- : FILELIST = tar (TARFILE, FILES)
-- : FILELIST = tar (TARFILE, FILES, ROOTDIR)
Pack the list of files and directories specified in FILES into the
TAR archive TARFILE.
FILES is a character array or cell array of strings. Shell
wildcards in the filename such as ‘*’ or ‘?’ are accepted and
expanded. Directories are recursively traversed and all files are
added to the archive.
If ROOTDIR is defined then any files without absolute pathnames are
located relative to ROOTDIR rather than the current directory.
The optional output FILELIST is a list of the files that were
included in the archive.
See also: Note: untar, Note: unpack, Note:
bzip2, Note: gzip, Note: zip.
-- : untar (TARFILE)
-- : untar (TARFILE, DIR)
Unpack the TAR archive TARFILE.
If DIR is specified the files are unpacked in this directory rather
than the one where TARFILE is located.
The optional output FILELIST is a list of the uncompressed files.
See also: Note: tar, Note: unpack, Note:
bunzip2, Note: gunzip, *note unzip:
XREFunzip.
-- : FILELIST = zip (ZIPFILE, FILES)
-- : FILELIST = zip (ZIPFILE, FILES, ROOTDIR)
Compress the list of files and directories specified in FILES into
the ZIP archive ZIPFILE.
FILES is a character array or cell array of strings. Shell
wildcards in the filename such as ‘*’ or ‘?’ are accepted and
expanded. Directories are recursively traversed and all files are
compressed and added to the archive.
If ROOTDIR is defined then any files without absolute pathnames are
located relative to ROOTDIR rather than the current directory.
The optional output FILELIST is a list of the files that were
included in the archive.
See also: Note: unzip, Note: unpack, Note:
bzip2, Note: gzip, Note: tar.
-- : FILELIST = unzip (ZIPFILE)
-- : FILELIST = unzip (ZIPFILE, DIR)
Unpack the ZIP archive ZIPFILE.
If DIR is specified the files are unpacked in this directory rather
than the one where ZIPFILE is located.
The optional output FILELIST is a list of the uncompressed files.
See also: Note: zip, Note: unpack, Note:
bunzip2, Note: gunzip, *note untar:
XREFuntar.
-- : FILES = unpack (FILE)
-- : FILES = unpack (FILE, DIR)
-- : FILES = unpack (FILE, DIR, FILETYPE)
Unpack the archive FILE based on its extension to the directory
DIR.
If FILE is a list of strings, then each file is unpacked
individually. Shell wildcards in the filename such as ‘*’ or ‘?’
are accepted and expanded.
If DIR is not specified or is empty (‘[]’), it defaults to the
current directory. If a directory is in the file list, then
FILETYPE must also be specified.
The specific archive filetype is inferred from the extension of the
file. The FILETYPE may also be specified directly using a string
which corresponds to a known extension.
Valid filetype extensions:
‘bz’
‘bz2’
bzip archive
‘gz’
gzip archive
‘tar’
tar archive
‘tarbz’
‘tarbz2’
‘tbz’
‘tbz2’
tar + bzip archive
‘targz’
‘tgz’
tar + gzip archive
‘z’
compress archive
‘zip’
zip archive
The optional return value is a list of FILES unpacked.
See also: Note: bunzip2, Note: gunzip,
Note: unzip, Note: untar, *note bzip2:
XREFbzip2, Note: gzip, Note: zip, *note tar:
XREFtar.
-- : FILELIST = bzip2 (FILES)
-- : FILELIST = bzip2 (FILES, DIR)
Compress the list of files specified in FILES.
FILES is a character array or cell array of strings. Shell
wildcards in the filename such as ‘*’ or ‘?’ are accepted and
expanded. Each file is compressed separately and a new file with a
‘".bz2"’ extension is created. The original files are not
modified, but existing compressed files will be silently
overwritten.
If DIR is defined the compressed files are placed in this
directory, rather than the original directory where the
uncompressed file resides. Note that this does not replicate a
directory tree in DIR which may lead to files overwriting each
other if there are multiple files with the same name.
If DIR does not exist it is created.
The optional output FILELIST is a list of the compressed files.
See also: Note: bunzip2, Note: unpack,
Note: gzip, Note: zip, Note: tar.
automatically generated by info2www version 1.2.2.9