Skip to content

Instantly share code, notes, and snippets.

@yaqinking
Last active October 11, 2015 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaqinking/daaeb2e8f35d4c150e94 to your computer and use it in GitHub Desktop.
Save yaqinking/daaeb2e8f35d4c150e94 to your computer and use it in GitHub Desktop.
Delete current folder all rar files, then zip all files under every folder, finally delete all ziped files under every folder
rm -rf *.rar;for i in */; do zip -r "${i%/}.zip" "$i";done;for i in */; do rm -rf "${i%/}";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment