Skip to content

Instantly share code, notes, and snippets.

@11philip22
Created April 8, 2020 15:26
Show Gist options
  • Save 11philip22/35b7b176bbb50fce3cf7e07d9b0fb6e7 to your computer and use it in GitHub Desktop.
Save 11philip22/35b7b176bbb50fce3cf7e07d9b0fb6e7 to your computer and use it in GitHub Desktop.
#!/bin/bash
c=0
for f in *.zip; do
x="$(zipinfo -t "$f" | awk '{print $1}')"
c=$(( $c + $x ))
done
echo "The total file count is:" $c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment