Skip to content

Instantly share code, notes, and snippets.

@vu3jej
Last active August 4, 2016 12:37
Show Gist options
  • Save vu3jej/061024c384fdc3db76a3623c580478b5 to your computer and use it in GitHub Desktop.
Save vu3jej/061024c384fdc3db76a3623c580478b5 to your computer and use it in GitHub Desktop.
Bash one-liner to print the filename, compressed size, compression factor and ZIP archive name of all the zipped files in a directory
for file in $(find . -type f -print); do zipinfo -m "$file" | awk -v filename="$file" -F ' ' '{ print $4, "\t", $6, "\t", $10, "\t", filename }'; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment