Share

7-Zip

Subscribe

include switch with extract command

  1. 2009-11-06 23:08:00 UTC

    I've been fiddling for almost an hour and I can't figure out how to use the -i switch with the x command

    Basically I have a .tar.gz file with some pretty complex directories and I just need to grab a handful of files out of it

    Could someone give me an example of this? I tried a list file, I tried passing the full path that is inside the archive, I've tried several things, basically I want

    7z -oDESTINATION archive.tar.gz -irWANTEDFILE(S)

    Anyone know, I've been combing the internet to no avail

    Thanks

  2. 2009-11-06 23:08:55 UTC

    Sorry, meant 7z x -oDESTINATION archive.tar.gz -irWANTEDFILE(S)

  3. 2009-11-08 17:21:15 UTC

    7z l archive.tar.gz

    See your problem?

  4. 2009-11-09 05:46:38 UTC

    I'm guessing your pointing out that 7z isn't too happy with tar.gz(s)

    But since I can't find a true example anywhere, could you give me the example syntax for

    7z -oDESTINATION archive.zip -irWANTEDFILE(S)

    or any archive it will handle?

  5. 2009-11-09 06:41:41 UTC
    $ 7z e openssl-0.9.8l.tar.gz
    
    
    
    7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03
    
    
    
    Processing archive: openssl-0.9.8l.tar.gz
    
    
    
    Extracting  openssl-0.9.8l.tar
    
    
    
    Everything is Ok
    
    
    
    Size:       20684800
    
    Compressed: 4179422
    
    
    
    $ 7z x -ot:\test\output -ir!changes -ir!install.w* openssl-0.9.8l.tar
    
    
    
    7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03
    
    
    
    Processing archive: openssl-0.9.8l.tar
    
    
    
    Extracting  openssl-0.9.8l\CHANGES
    
    Extracting  openssl-0.9.8l\INSTALL.W32
    
    Extracting  openssl-0.9.8l\INSTALL.W64
    
    Extracting  openssl-0.9.8l\INSTALL.WCE
    
    
    
    Everything is Ok
    
    
    
    Files: 4
    
    Size:       379021
    
    Compressed: 20684800
    
    
    
    $ dir /s /b t:\test\output
    
    t:\test\output\openssl-0.9.8l
    
    t:\test\output\openssl-0.9.8l\CHANGES
    
    t:\test\output\openssl-0.9.8l\INSTALL.W32
    
    t:\test\output\openssl-0.9.8l\INSTALL.W64
    
    t:\test\output\openssl-0.9.8l\INSTALL.WCE
    
    
    
    $
    
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.