Created
April 8, 2020 15:26
-
-
Save 11philip22/35b7b176bbb50fce3cf7e07d9b0fb6e7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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