unrar'ing everything in subdirectories without getting into a loop
0
votes
4
answers
3161
views
So I've been trying to unrar multiple
.rar
files in lots of different folders. Some are packed a little differently and looping is causing a problem.
- folder 1
- file.part01.rar
- file.part02.rar
- ...
- folder 2
- file.r01
- file.r02
- file.rar
- folder 3
- file1.rar
- file2.rar
- ...
after doing for f in *.rar; do unrar e $f;done
or something similar, it gets into a loop and keeps unrar'ing files it's already done. This is because part01.rar
& part02.rar
both are rar files and satisfies the command.
Is there anything I could do to stop this loop?
I have over 50 folders so don't want to go through all of them individually.
Asked by csc
(1 rep)
Nov 6, 2018, 03:59 PM
Last activity: Feb 24, 2021, 03:19 AM
Last activity: Feb 24, 2021, 03:19 AM