Timeline for How to list files in a zip without extra information in command line
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 15, 2021 at 13:58 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 16 characters in body |
| May 29, 2020 at 4:06 | comment | added | michael | I was also looking for a way to exclude directories from the listing (bsdtar -tf also prints directories just like unzip -Z1), afaik this may be the only option: unzip -Z1 test.zip | grep -v '/$', since all entries that are just directory names have a trailing slash ( /). nb: however, if the goal was to remove directory prefix from the path, then each line would have to be processed with basename or bash equivalent stackoverflow.com/questions/965053/… | |
| Jan 28, 2020 at 15:58 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 574 characters in body |
| Nov 26, 2019 at 22:54 | comment | added | Matt | Is there a way to ignore directories? unzip -Z1 zipfile.zip will output: directory/ and directory/file.extension (Note: directory names with . is likely, so adding a | grep . doesn't work) | |
| Jul 25, 2016 at 15:11 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 80 characters in body |
| May 7, 2014 at 14:52 | vote | accept | рüффп | ||
| May 7, 2014 at 13:33 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | added 143 characters in body |
| May 7, 2014 at 13:27 | history | answered | Stéphane Chazelas | CC BY-SA 3.0 |