Created
April 9, 2020 14:08
-
-
Save sebastiandg7/56ab4af10b43d2143df5a1e532f07eaf to your computer and use it in GitHub Desktop.
Compress all folders in current directory in their own RAR file
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
for folder in */ | |
do | |
rar a -m5 -r "${folder%/}.rar" "$folder" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment