Skip to content

Instantly share code, notes, and snippets.

@ryanfb
Created October 3, 2023 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanfb/d93ff97d725d1ef95704afb73feae826 to your computer and use it in GitHub Desktop.
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.
#!/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