octave: 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.
DONTPRINTYET See also: bzip2 XREFbzip2, unpack XREFunpack, *noteDONTPRINTYET See also: bzip2 XREFbzip2, unpack XREFunpack,
gunzip XREFgunzip, unzip XREFunzip, untar XREFuntar.
-- : 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.
DONTPRINTYET See also: gunzip XREFgunzip, unpack XREFunpack, *noteDONTPRINTYET See also: gunzip XREFgunzip, unpack XREFunpack,
bzip2 XREFbzip2, zip XREFzip, tar XREFtar.
-- : 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.
DONTPRINTYET See also: gzip XREFgzip, unpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET See also: gzip XREFgzip, unpack XREFunpack,
bunzip2 XREFbunzip2, unzip XREFunzip, *noteuntar:
DONTPRINTYET DONTPRINTYET See also: gzip XREFgzip, unpack XREFunpack,
bunzip2 XREFbunzip2, unzip XREFunzip, 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.
DONTPRINTYET See also: untar XREFuntar, unpack XREFunpack, *noteDONTPRINTYET See also: untar XREFuntar, unpack XREFunpack,
bzip2 XREFbzip2, gzip XREFgzip, zip XREFzip.
-- : 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.
DONTPRINTYET See also: tar XREFtar, unpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET See also: tar XREFtar, unpack XREFunpack,
bunzip2 XREFbunzip2, gunzip XREFgunzip, *noteunzip:
DONTPRINTYET DONTPRINTYET See also: tar XREFtar, unpack XREFunpack,
bunzip2 XREFbunzip2, gunzip XREFgunzip, 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.
DONTPRINTYET See also: unzip XREFunzip, unpack XREFunpack, *noteDONTPRINTYET See also: unzip XREFunzip, unpack XREFunpack,
bzip2 XREFbzip2, gzip XREFgzip, tar XREFtar.
-- : 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.
DONTPRINTYET See also: zip XREFzip, unpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET See also: zip XREFzip, unpack XREFunpack,
bunzip2 XREFbunzip2, gunzip XREFgunzip, *noteuntar:
DONTPRINTYET DONTPRINTYET See also: zip XREFzip, unpack XREFunpack,
bunzip2 XREFbunzip2, gunzip XREFgunzip, 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: bunzip2 XREFbunzip2, gunzip XREFgunzip,
DONTPRINTYET unzip XREFunzip, untar XREFuntar, *notebzip2:
DONTPRINTYET DONTPRINTYET unzip XREFunzip, untar XREFuntar, bzip2
XREFbzip2, gzip XREFgzip, zip XREFzip, *notetar:
DONTPRINTYET DONTPRINTYET unzip XREFunzip, untar XREFuntar, bzip2
XREFbzip2, gzip XREFgzip, zip XREFzip, 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: bunzip2 XREFbunzip2, unpack XREFunpack,
gzip XREFgzip, zip XREFzip, tar XREFtar.