unzip multiple files












8















I don't think that I'm the only one with this problem, but unfortunately I wasn't able to find the proper answer between previously asked questions.



It is a very common procedure on torrent sites where the content is split in many small archives. Sometimes, those small indexed zip archives are containing another rar archives inside.



So, my question is: how to you handle this problem? How to you recursively unpack those files?










share|improve this question




















  • 2





    Could you give an example?

    – ztik
    Dec 23 '14 at 11:38











  • Are you looking for a manual or a completely automated solution?

    – David Foerster
    Dec 23 '14 at 13:48











  • just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

    – Jeggy
    Dec 23 '14 at 13:51
















8















I don't think that I'm the only one with this problem, but unfortunately I wasn't able to find the proper answer between previously asked questions.



It is a very common procedure on torrent sites where the content is split in many small archives. Sometimes, those small indexed zip archives are containing another rar archives inside.



So, my question is: how to you handle this problem? How to you recursively unpack those files?










share|improve this question




















  • 2





    Could you give an example?

    – ztik
    Dec 23 '14 at 11:38











  • Are you looking for a manual or a completely automated solution?

    – David Foerster
    Dec 23 '14 at 13:48











  • just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

    – Jeggy
    Dec 23 '14 at 13:51














8












8








8


1






I don't think that I'm the only one with this problem, but unfortunately I wasn't able to find the proper answer between previously asked questions.



It is a very common procedure on torrent sites where the content is split in many small archives. Sometimes, those small indexed zip archives are containing another rar archives inside.



So, my question is: how to you handle this problem? How to you recursively unpack those files?










share|improve this question
















I don't think that I'm the only one with this problem, but unfortunately I wasn't able to find the proper answer between previously asked questions.



It is a very common procedure on torrent sites where the content is split in many small archives. Sometimes, those small indexed zip archives are containing another rar archives inside.



So, my question is: how to you handle this problem? How to you recursively unpack those files?







unzip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 12 '15 at 8:49









Braiam

51.7k20136220




51.7k20136220










asked Dec 23 '14 at 11:36









rdarda

97110




97110








  • 2





    Could you give an example?

    – ztik
    Dec 23 '14 at 11:38











  • Are you looking for a manual or a completely automated solution?

    – David Foerster
    Dec 23 '14 at 13:48











  • just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

    – Jeggy
    Dec 23 '14 at 13:51














  • 2





    Could you give an example?

    – ztik
    Dec 23 '14 at 11:38











  • Are you looking for a manual or a completely automated solution?

    – David Foerster
    Dec 23 '14 at 13:48











  • just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

    – Jeggy
    Dec 23 '14 at 13:51








2




2





Could you give an example?

– ztik
Dec 23 '14 at 11:38





Could you give an example?

– ztik
Dec 23 '14 at 11:38













Are you looking for a manual or a completely automated solution?

– David Foerster
Dec 23 '14 at 13:48





Are you looking for a manual or a completely automated solution?

– David Foerster
Dec 23 '14 at 13:48













just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

– Jeggy
Dec 23 '14 at 13:51





just a note, normally when you find that kind of torrents it about illegal software/movies, and you'll never actually get to the end of those .rar/.zip files because it's fake.

– Jeggy
Dec 23 '14 at 13:51










3 Answers
3






active

oldest

votes


















12














To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



unzip '*.zip'


Also you can right click on the first file in the group, and choose Extract here, and that will also all the files in that group.






share|improve this answer


























  • According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

    – David Foerster
    Dec 23 '14 at 13:10











  • @DavidFoerster just tested it, and it works.

    – Mitch
    Dec 23 '14 at 14:03











  • Ok, then the manual appears to be wrong. Good catch.

    – David Foerster
    Dec 23 '14 at 14:38













  • @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

    – papajo
    Oct 11 '17 at 0:39





















1














To unzip multiple files using a loop -



for z in *.zip; do unzip "$z"; done





share|improve this answer
























  • @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

    – Rohith Madhavan
    Dec 23 '14 at 17:08











  • This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

    – John Hamilton
    Aug 23 '17 at 8:29



















0














CTRL+ALT+T to open up a terminal



for f in $(ls | egrep zip); do
unzip $f -vd UnzippedDirectory
done


This basically loops through all the zips you got in your current directory, and unzips each of them verbose (hence the -v flag) into a directory (-d flag)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f564607%2funzip-multiple-files%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    12














    To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



    unzip '*.zip'


    Also you can right click on the first file in the group, and choose Extract here, and that will also all the files in that group.






    share|improve this answer


























    • According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

      – David Foerster
      Dec 23 '14 at 13:10











    • @DavidFoerster just tested it, and it works.

      – Mitch
      Dec 23 '14 at 14:03











    • Ok, then the manual appears to be wrong. Good catch.

      – David Foerster
      Dec 23 '14 at 14:38













    • @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

      – papajo
      Oct 11 '17 at 0:39


















    12














    To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



    unzip '*.zip'


    Also you can right click on the first file in the group, and choose Extract here, and that will also all the files in that group.






    share|improve this answer


























    • According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

      – David Foerster
      Dec 23 '14 at 13:10











    • @DavidFoerster just tested it, and it works.

      – Mitch
      Dec 23 '14 at 14:03











    • Ok, then the manual appears to be wrong. Good catch.

      – David Foerster
      Dec 23 '14 at 14:38













    • @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

      – papajo
      Oct 11 '17 at 0:39
















    12












    12








    12







    To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



    unzip '*.zip'


    Also you can right click on the first file in the group, and choose Extract here, and that will also all the files in that group.






    share|improve this answer















    To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:



    unzip '*.zip'


    Also you can right click on the first file in the group, and choose Extract here, and that will also all the files in that group.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 23 '14 at 14:04

























    answered Dec 23 '14 at 11:45









    MitchMitch

    84.1k14173229




    84.1k14173229













    • According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

      – David Foerster
      Dec 23 '14 at 13:10











    • @DavidFoerster just tested it, and it works.

      – Mitch
      Dec 23 '14 at 14:03











    • Ok, then the manual appears to be wrong. Good catch.

      – David Foerster
      Dec 23 '14 at 14:38













    • @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

      – papajo
      Oct 11 '17 at 0:39





















    • According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

      – David Foerster
      Dec 23 '14 at 13:10











    • @DavidFoerster just tested it, and it works.

      – Mitch
      Dec 23 '14 at 14:03











    • Ok, then the manual appears to be wrong. Good catch.

      – David Foerster
      Dec 23 '14 at 14:38













    • @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

      – papajo
      Oct 11 '17 at 0:39



















    According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

    – David Foerster
    Dec 23 '14 at 13:10





    According to the manual unzip doesn't support split archives (see the first paragraph in the section “Bugs”).

    – David Foerster
    Dec 23 '14 at 13:10













    @DavidFoerster just tested it, and it works.

    – Mitch
    Dec 23 '14 at 14:03





    @DavidFoerster just tested it, and it works.

    – Mitch
    Dec 23 '14 at 14:03













    Ok, then the manual appears to be wrong. Good catch.

    – David Foerster
    Dec 23 '14 at 14:38







    Ok, then the manual appears to be wrong. Good catch.

    – David Foerster
    Dec 23 '14 at 14:38















    @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

    – papajo
    Oct 11 '17 at 0:39







    @mitch in my case it doesnt work it sais "error while loading the zip file" but on windows the same directory on the same disk unzips with winrar, maybe you tried to unzip multiple but >separate< zip file simultanously? thats an other thing though.

    – papajo
    Oct 11 '17 at 0:39















    1














    To unzip multiple files using a loop -



    for z in *.zip; do unzip "$z"; done





    share|improve this answer
























    • @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

      – Rohith Madhavan
      Dec 23 '14 at 17:08











    • This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

      – John Hamilton
      Aug 23 '17 at 8:29
















    1














    To unzip multiple files using a loop -



    for z in *.zip; do unzip "$z"; done





    share|improve this answer
























    • @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

      – Rohith Madhavan
      Dec 23 '14 at 17:08











    • This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

      – John Hamilton
      Aug 23 '17 at 8:29














    1












    1








    1







    To unzip multiple files using a loop -



    for z in *.zip; do unzip "$z"; done





    share|improve this answer













    To unzip multiple files using a loop -



    for z in *.zip; do unzip "$z"; done






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 23 '14 at 11:51









    Rohith MadhavanRohith Madhavan

    6,73622041




    6,73622041













    • @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

      – Rohith Madhavan
      Dec 23 '14 at 17:08











    • This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

      – John Hamilton
      Aug 23 '17 at 8:29



















    • @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

      – Rohith Madhavan
      Dec 23 '14 at 17:08











    • This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

      – John Hamilton
      Aug 23 '17 at 8:29

















    @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

    – Rohith Madhavan
    Dec 23 '14 at 17:08





    @DavidFoerster The two methods are essentially the same. *.zip provides all the possible files ending with a zip extension which the loop unzips one by one. This is also why @Mitch has included single quotes in his answer to make it '*.zip', so that the the shell will not recognize it as a wild card character.

    – Rohith Madhavan
    Dec 23 '14 at 17:08













    This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

    – John Hamilton
    Aug 23 '17 at 8:29





    This is actually a better method since you can specify a file name list instead of saying "all files in the directory". I.E. you want to extract a specific list of zip files one after the other in order, you could do, "for z in X Y Z T G; do unzip -o "$z.zip"; done" and it would do it in that order. This is the better answer imho.

    – John Hamilton
    Aug 23 '17 at 8:29











    0














    CTRL+ALT+T to open up a terminal



    for f in $(ls | egrep zip); do
    unzip $f -vd UnzippedDirectory
    done


    This basically loops through all the zips you got in your current directory, and unzips each of them verbose (hence the -v flag) into a directory (-d flag)






    share|improve this answer




























      0














      CTRL+ALT+T to open up a terminal



      for f in $(ls | egrep zip); do
      unzip $f -vd UnzippedDirectory
      done


      This basically loops through all the zips you got in your current directory, and unzips each of them verbose (hence the -v flag) into a directory (-d flag)






      share|improve this answer


























        0












        0








        0







        CTRL+ALT+T to open up a terminal



        for f in $(ls | egrep zip); do
        unzip $f -vd UnzippedDirectory
        done


        This basically loops through all the zips you got in your current directory, and unzips each of them verbose (hence the -v flag) into a directory (-d flag)






        share|improve this answer













        CTRL+ALT+T to open up a terminal



        for f in $(ls | egrep zip); do
        unzip $f -vd UnzippedDirectory
        done


        This basically loops through all the zips you got in your current directory, and unzips each of them verbose (hence the -v flag) into a directory (-d flag)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 3 '16 at 19:44









        Mincă Daniel AndreiMincă Daniel Andrei

        21318




        21318






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f564607%2funzip-multiple-files%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?