6

I need a way to get a parsable list of all files in a .rar archive without extracting them, in bash or python.

What I've tried:

rar l *.rar 7z l -slt *.rar

I've also looked at patool in python, but it seems to be just a thin wrapper over rar.

I want the equivalent of tar -tvf. One file name per line, no extra details. Is there such a thing?

1 Answers1

3

From rar -?: l[t[a],b] List archive contents [technical[all], bare]

rar lb *.rar
Seth
  • 9,393