다음: , 이전: , 상위 문서: System Utilities   [차례][찾아보기]


36.3 File Archiving Utilities

bunzip2 (bzfile)
bunzip2 (bzfile, 자료방)
filelist = bunzip2 (…)

Unpack the bzip2 archive bzfile.

If 자료방 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.

같이 보기: bzip2, unpack, gunzip, unzip, untar.

filelist = gzip (files)
filelist = gzip (files, 자료방)

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 자료방 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 자료방 which may lead to files overwriting each other if there are multiple files with the same name.

If 자료방 does not exist it is created.

The optional output filelist is a list of the compressed files.

같이 보기: gunzip, unpack, bzip2, zip, tar.

gunzip (gzfile)
gunzip (gzfile, 자료방)
filelist = gunzip (…)

Unpack the gzip archive gzfile.

If gzfile is a directory, all gzfiles in the directory will be recursively unpacked.

If 자료방 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.

같이 보기: gzip, unpack, bunzip2, unzip, untar.

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.

같이 보기: untar, unpack, bzip2, gzip, zip.

untar (tarfile)
untar (tarfile, 자료방)
filelist = untar (…)

Unpack the TAR archive tarfile.

If 자료방 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.

같이 보기: tar, unpack, bunzip2, gunzip, unzip.

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.

같이 보기: unzip, unpack, bzip2, gzip, tar.

unzip (zipfile)
unzip (zipfile, 자료방)
filelist = unzip (…)

Unpack the ZIP archive zipfile.

If 자료방 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.

같이 보기: zip, unpack, bunzip2, gunzip, untar.

files = unpack (기록철)
files = unpack (기록철, 자료방)
files = unpack (기록철, 자료방, filetype)

Unpack the archive 기록철 based on its extension to the directory 자료방.

If 기록철 is a list of strings, then each file is unpacked individually. Shell wildcards in the filename such as ‘*’ or ‘?’ are accepted and expanded.

If 자료방 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.

같이 보기: bunzip2, gunzip, unzip, untar, bzip2, gzip, zip, tar.

filelist = bzip2 (files)
filelist = bzip2 (files, 자료방)

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 자료방 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 자료방 which may lead to files overwriting each other if there are multiple files with the same name.

If 자료방 does not exist it is created.

The optional output filelist is a list of the compressed files.

같이 보기: bunzip2, unpack, gzip, zip, tar.


다음: , 이전: , 상위 문서: System Utilities   [차례][찾아보기]