Created
July 17, 2012 23:34
-
-
Save hydrangeas/3132924 to your computer and use it in GitHub Desktop.
encode base64
This file contains 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 image in *jpg; | |
do; | |
base64 < ${image} > ${image}.base64; | |
done |
This file contains 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 file in *jpg*; | |
do; | |
gzip ${file}; | |
done |
This file contains 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
ls -la *jpg|awk '{sum+=$5} END{print sum}' | |
ls -la *jpg.gz|awk '{sum+=$5} END{print sum}' | |
ls -la *jpg.base64.gz|awk '{sum+=$5} END{print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment