unzip
명령에는 아카이브를 재귀 적으로 압축 해제하는 옵션이 없습니다.Unix 명령 줄에서 디렉토리와 그 하위 디렉토리의 아카이브를 재귀 적으로 압축 해제합니까?
만약 내가 다음 디렉토리 구조 및 아카이브가 :
/Mother/Loving.zip /Scurvy/Sea Dogs.zip /Scurvy/Cures/Limes.zip
을 그리고 각 아카이브와 같은 이름을 가진 디렉토리에 아카이브의 모든 압축을 풀 :
/Mother/Loving/1.txt /Mother/Loving.zip /Scurvy/Sea Dogs/2.txt /Scurvy/Sea Dogs.zip /Scurvy/Cures/Limes/3.txt /Scurvy/Cures/Limes.zip
어떤 명령이나 명령을 내릴 수 있습니까?
공백이있는 파일 이름에 영향을주지 않는 것이 중요합니다. -r 플래그를 사용하여 gunzip으로 같은
이find . -name "*.zip" | while read filename; do unzip -o -d "`basename -s .zip "$filename"`" "$filename"; done;
260자를 초과하는 긴 파일 경로는 어떻게됩니까? https://superuser.com/a/1263234/439537 – Andrew