Skip to content

Instantly share code, notes, and snippets.

@mjard
Created June 29, 2010 22:11
Show Gist options
  • Save mjard/457896 to your computer and use it in GitHub Desktop.
Save mjard/457896 to your computer and use it in GitHub Desktop.
#!/bin/bash
for gzip_file in *.gz; do
gzip -t $gzip_file 2> /dev/null
if [ $? -ne 0 ]; then
echo $gzip_file >&2
rm $gzip_file
fi
echo -n "."
done
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment