Skip to content

Instantly share code, notes, and snippets.

View aronbeal's full-sized avatar

Aron Beal aronbeal

  • Beal Consulting
  • Vancouver, BC
View GitHub Profile
#!/bin/sh
# credit from http://stackoverflow.com/questions/6301885/convert-tar-gz-to-zip
for f in *.tar.gz
do
rm -rf ${f%.tar.gz}
mkdir ${f%.tar.gz}
tar xvzf $f -C ${f%.tar.gz}
zip ${f%.tar.gz}.zip -r ${f%.tar.gz}
rm -rf ${f%.tar.gz}