I see what you're saying. The problem is that we're not compressing the files ourselves. We have no control over how we're getting the files. We have a recursive solution that just brute forces it, but it's resource-intensive and outputs much more stuff that we don't need. I've been creating an index afterwards for double checking purposes. It only needs to be done once for each archive, with one new archive coming each month or so. It would however be nice to get the names of all dats without unzipping...
Thanks for the info! Do you know of a tool that will create an index showing full contents of nested archives?
In Windows, I have a compressed folder a.zip which contains a compressed folder b.zip which contains a file c.dat. The command 7z e C:\Data -oC:\Data ".dat" -r -y does not retrieve c.dat since it can't recurse through compressed folders. I have to first unzip a.zip and only then run the command. The problem is I'm working in a much more complicated directory structure with lots of layers of compressed folders. I need a command or script that will identify the locations of all the .dat files and do...