Skip to content

Instantly share code, notes, and snippets.

@hydrangeas
Created July 17, 2012 23:34
Show Gist options
  • Save hydrangeas/3132924 to your computer and use it in GitHub Desktop.
Save hydrangeas/3132924 to your computer and use it in GitHub Desktop.
encode base64
for image in *jpg;
do;
base64 < ${image} > ${image}.base64;
done
for file in *jpg*;
do;
gzip ${file};
done
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