Last active
April 28, 2016 21:50
-
-
Save Uradamus/d1795b77322ea2f9ac70f2665a383931 to your computer and use it in GitHub Desktop.
Batch convert .blend files to gzip compressed .blend files.
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
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