Created
October 3, 2023 16:37
-
-
Save ryanfb/d93ff97d725d1ef95704afb73feae826 to your computer and use it in GitHub Desktop.
Verify that all files in a given zip file exist (i.e. have been extracted). NB: no checksum verification, just existence.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
7z l -slt -ba "$1" | grep '^Path' | sed -e 's/^Path = //' | while read i; do if [ ! -e "$i" ]; then echo "$i"; fi; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment