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: Seebzip2 XREFbzip2, Seeunpack XREFunpack, *noteDONTPRINTYET       See also: Seebzip2 XREFbzip2, Seeunpack XREFunpack, See
      gunzip XREFgunzip, Seeunzip XREFunzip, Seeuntar 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: Seegunzip XREFgunzip, Seeunpack XREFunpack, *noteDONTPRINTYET       See also: Seegunzip XREFgunzip, Seeunpack XREFunpack, See
      bzip2 XREFbzip2, Seezip XREFzip, Seetar 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: Seegzip XREFgzip, Seeunpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET       See also: Seegzip XREFgzip, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seeunzip XREFunzip, *noteuntar:
DONTPRINTYET DONTPRINTYET       See also: Seegzip XREFgzip, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seeunzip XREFunzip, Seeuntar

      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: Seeuntar XREFuntar, Seeunpack XREFunpack, *noteDONTPRINTYET       See also: Seeuntar XREFuntar, Seeunpack XREFunpack, See
      bzip2 XREFbzip2, Seegzip XREFgzip, Seezip 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: Seetar XREFtar, Seeunpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET       See also: Seetar XREFtar, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seegunzip XREFgunzip, *noteunzip:
DONTPRINTYET DONTPRINTYET       See also: Seetar XREFtar, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seegunzip XREFgunzip, Seeunzip

      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: Seeunzip XREFunzip, Seeunpack XREFunpack, *noteDONTPRINTYET       See also: Seeunzip XREFunzip, Seeunpack XREFunpack, See
      bzip2 XREFbzip2, Seegzip XREFgzip, Seetar 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: Seezip XREFzip, Seeunpack XREFunpack, *noteDONTPRINTYET DONTPRINTYET       See also: Seezip XREFzip, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seegunzip XREFgunzip, *noteuntar:
DONTPRINTYET DONTPRINTYET       See also: Seezip XREFzip, Seeunpack XREFunpack, See
      bunzip2 XREFbunzip2, Seegunzip XREFgunzip, Seeuntar

      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: Seebunzip2 XREFbunzip2, Seegunzip XREFgunzip,
DONTPRINTYET       Seeunzip XREFunzip, Seeuntar XREFuntar, *notebzip2:
DONTPRINTYET DONTPRINTYET       Seeunzip XREFunzip, Seeuntar XREFuntar, Seebzip2

      XREFbzip2, Seegzip XREFgzip, Seezip XREFzip, *notetar:
DONTPRINTYET DONTPRINTYET       Seeunzip XREFunzip, Seeuntar XREFuntar, Seebzip2

      XREFbzip2, Seegzip XREFgzip, Seezip XREFzip, Seetar

      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: Seebunzip2 XREFbunzip2, Seeunpack XREFunpack,
      Seegzip XREFgzip, Seezip XREFzip, Seetar XREFtar.