#24 option to list only the file names from the ZIP's directory?

closed
nobody
None
1
2008-10-26
2008-07-31
No

An option to list only the file names from the ZIP file's directory would be nice.

Discussion

  • patch to add option "unzip -l -qqq" which lists ONLY the file names (and path) of the files in the archive

     
    Attachments
    • priority: 5 --> 1
     
  • Ed Gordon
    Ed Gordon
    2008-09-28

    We'll take a look at this. It should be possible to parse the output of unzip -l to pull the paths out. Note that Zip 3.0 provides close to this using the -sf (show files) option as in zip -sf archive.zip.

     
  • Ed Gordon
    Ed Gordon
    2008-09-29

    Assuming you want to list the files in an archive, it looks like zipinfo mode already does this:

    unzip -Z -1 archive.zip

    Please confirm this does what you need.

     
  • yes, it does. Thanks :-)

     
    • status: open --> closed