Last active
October 11, 2015 14:51
-
-
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
This file contains hidden or 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
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