Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created July 27, 2012 04:39
Show Gist options
  • Save stanwu/3186210 to your computer and use it in GitHub Desktop.
Save stanwu/3186210 to your computer and use it in GitHub Desktop.
archive2_all.sh
#!/bin/sh
for i in tar.gz tgz tar.bz2 zip rar
do
find -size +10240k -name "*.$i" -exec archive2 "{}" true \;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment