How to unzip just a subfolder from the zip without getting the full path to that subfolder
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Is there a way to extract a specific subfolder (without the full path structure) from a zip?
My Zip (A.zip):
A
---B
----C/files
I've tried this until now:
(unzip <target-zip-file> '<folder-to-extract/*>' -d <destination-path>)
unzip A.zip 'A/B/*' -d ~/
without any success. I get the same output as just doing the unzip A.zip -d ~/
I want to have only B/C/files
not A/B/C/files
as folders.
Extra: I know it exists an -j
option, but this just removes the subfolder structure.
Or that I can move them afterwards, but that's not my goal here.
Links: unzip to folder
zip
add a comment |Â
up vote
0
down vote
favorite
Is there a way to extract a specific subfolder (without the full path structure) from a zip?
My Zip (A.zip):
A
---B
----C/files
I've tried this until now:
(unzip <target-zip-file> '<folder-to-extract/*>' -d <destination-path>)
unzip A.zip 'A/B/*' -d ~/
without any success. I get the same output as just doing the unzip A.zip -d ~/
I want to have only B/C/files
not A/B/C/files
as folders.
Extra: I know it exists an -j
option, but this just removes the subfolder structure.
Or that I can move them afterwards, but that's not my goal here.
Links: unzip to folder
zip
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is there a way to extract a specific subfolder (without the full path structure) from a zip?
My Zip (A.zip):
A
---B
----C/files
I've tried this until now:
(unzip <target-zip-file> '<folder-to-extract/*>' -d <destination-path>)
unzip A.zip 'A/B/*' -d ~/
without any success. I get the same output as just doing the unzip A.zip -d ~/
I want to have only B/C/files
not A/B/C/files
as folders.
Extra: I know it exists an -j
option, but this just removes the subfolder structure.
Or that I can move them afterwards, but that's not my goal here.
Links: unzip to folder
zip
Is there a way to extract a specific subfolder (without the full path structure) from a zip?
My Zip (A.zip):
A
---B
----C/files
I've tried this until now:
(unzip <target-zip-file> '<folder-to-extract/*>' -d <destination-path>)
unzip A.zip 'A/B/*' -d ~/
without any success. I get the same output as just doing the unzip A.zip -d ~/
I want to have only B/C/files
not A/B/C/files
as folders.
Extra: I know it exists an -j
option, but this just removes the subfolder structure.
Or that I can move them afterwards, but that's not my goal here.
Links: unzip to folder
zip
asked Dec 14 '17 at 8:33
Edwin
1011
1011
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18
add a comment |Â
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f410816%2fhow-to-unzip-just-a-subfolder-from-the-zip-without-getting-the-full-path-to-that%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You can check this Q/A with IMHO same problem: superuser.com/questions/518347/â¦
â Romeo Ninov
Dec 14 '17 at 8:58
so the answer is that it cannot be done directly? (only with the extra function)
â Edwin
Dec 14 '17 at 9:54
Correct, at least with unzip
â Romeo Ninov
Dec 14 '17 at 10:18