unzip -j foo.zip
-j = junk paths. The archive's directory structure is not recreated; all files are deposited in the extraction directory
Eu tenho um arquivo zip: foo.zip .
O arquivo zip é extraído para:
- foo/
- hello.txt
- world.txt
Qual comando eu emito para extrair os arquivos hello.txt e world.txt para o diretório atual e não para o subdiretório foo . Eu poderia usar o comando cp , mas quero fazer isso de uma só vez.
unzip -j foo.zip
-j = junk paths. The archive's directory structure is not recreated; all files are deposited in the extraction directory
Tente:
$ unzip -j foo.zip
A opção -j :
-j junk paths. The archive's directory structure is not recreated; all files are deposited in the extraction directory (by default, the current one).
Tags zip