"Zip"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
2번째 줄: 2번째 줄:
 
  unzip -l
 
  unzip -l
 
https://ubuntuforums.org/showthread.php?t=860398
 
https://ubuntuforums.org/showthread.php?t=860398
 +
 +
<code>less</code>로도 볼 수 있다.
 +
[http://iph.kr/wiki/index.php/Bash#zip.EC.9D.98_.EB.82.B4.EC.9A.A9_.EB.B3.B4.EA.B8.B0 여기]참고
  
 
==특정 파일만 unzip==
 
==특정 파일만 unzip==

2017년 6월 12일 (월) 16:24 판

list contents of zip archive

unzip -l

https://ubuntuforums.org/showthread.php?t=860398

less로도 볼 수 있다. 여기참고

특정 파일만 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]