How can I list the content of a zip archive, but only the first level?
Solution 1:
You can filter the output with grep. Here I'm telling grep to hide all rows that contain a slash '/' and anything after the slash:
zipinfo file.zip | grep -v "/."
Solution 2:
Expanding and building on top of @dvb's answer, you can set the deepness level with extended regular expressions:
zipinfo file.zip | egrep "^([^/]*/?){<deepness-level>}$"