Skip to content

Instantly share code, notes, and snippets.

@Uradamus
Last active April 28, 2016 21:50
Show Gist options
  • Save Uradamus/d1795b77322ea2f9ac70f2665a383931 to your computer and use it in GitHub Desktop.
Save Uradamus/d1795b77322ea2f9ac70f2665a383931 to your computer and use it in GitHub Desktop.
Batch convert .blend files to gzip compressed .blend files.
for blend in *.blend; do
if [[ $(file -ib "$blend") == application/octet-stream* ]]; then
gzip -n1 "$blend"
mv "$blend.gz" "$blend"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment