Created
February 7, 2019 00:22
-
-
Save rssnyder/2b94fc75f541a7a54ef1b7b3011976b9 to your computer and use it in GitHub Desktop.
Finds .rar part files, combines, and deletes the part files after completion.
This file contains 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
#!/bin/bash | |
find . -name "*.rar" -execdir unrar e -o- "{}" \; | |
find . -type f -name "*.rar" -delete | |
find . -type f -name "*.r[0-9][0-9]" -delete | |
find . -name "*[sS]ample*" -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment