"Zip"의 두 판 사이의 차이
ph
2번째 줄: | 2번째 줄: | ||
unzip -l | unzip -l | ||
https://ubuntuforums.org/showthread.php?t=860398 | https://ubuntuforums.org/showthread.php?t=860398 | ||
+ | |||
+ | ==특정 파일만 unzip== | ||
+ | unzip -j "myarchive.zip" "in/archive/file.txt" -d "/path/to/unzip/to" | ||
+ | unzip매뉴얼에 보면 | ||
+ | unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir] | ||
+ | |||
+ | [file(s)] | ||
+ | An optional list of archive members to be processed, separated by spaces. (VMS ver‐ | ||
+ | sions compiled with VMSCLI defined must delimit files with commas instead. See -v in | ||
+ | OPTIONS below.) Regular expressions (wildcards) may be used to match multiple mem‐ | ||
+ | bers; see above. Again, be sure to quote expressions that would otherwise be | ||
+ | expanded or modified by the operating system. | ||
+ | -j junk paths. The archive's directory structure is not recreated; | ||
+ | |||
+ | <code>file(s)</code>에 패턴이 오고, 폴더가 아니고 오직 파일만 가리키게 됨. 따라서 특정 폴더를 지칭하려면 | ||
+ | unzip a.zip specific/in/zip/* | ||
+ | 이렇게 asterisk써줌. | ||
+ | [https://unix.stackexchange.com/a/57522/31363] |
2017년 6월 12일 (월) 16:15 판
list contents of zip archive
unzip -l
https://ubuntuforums.org/showthread.php?t=860398
특정 파일만 unzip
unzip -j "myarchive.zip" "in/archive/file.txt" -d "/path/to/unzip/to"
unzip매뉴얼에 보면
unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir]
[file(s)] An optional list of archive members to be processed, separated by spaces. (VMS ver‐ sions compiled with VMSCLI defined must delimit files with commas instead. See -v in OPTIONS below.) Regular expressions (wildcards) may be used to match multiple mem‐ bers; see above. Again, be sure to quote expressions that would otherwise be expanded or modified by the operating system. -j junk paths. The archive's directory structure is not recreated;
file(s)
에 패턴이 오고, 폴더가 아니고 오직 파일만 가리키게 됨. 따라서 특정 폴더를 지칭하려면
unzip a.zip specific/in/zip/*
이렇게 asterisk써줌. [1]