Menu

#1683 List the bare contents of an archive

open
nobody
None
5
23 hours ago
2 days ago
oset jan
No

Request for option to list bare contents of an archive. Bare meaning only, pure file names.
It would be very useful for things like searching file names within an archive, listing files for other tools in pipeline, providing content of archive to other tools or scripts.

Tar and rar can do that. It would be useful to be able to do that with .7z archives too.

$ tar -t -f arc1.tar 
path/
path/to/
path/to/file.3
path/to/file.2
path/to/file.1

$ rar lb arc1.rar 
path/to/file.3
path/to/file.2
path/to/file.1
path/to
path

Discussion

  • AlexS

    AlexS - 2 days ago
    7z t archive.7z -bb 
    
     
  • oset jan

    oset jan - 2 days ago

    That's not the same. Test it yourself and tell me that's the answer.

     

Log in to post a comment.

MongoDB Logo MongoDB