bash function/alias for multi-archive unrar
سؤال
I'm trying to write a simple bash alias/function (whichever I get working the quickest), that unrars multi-rar archives. None of my attempts work though.
The plain command invoked in the shell doesn't work either, which I guess is probably the gist of the problem:
find . \( -name *.rar -and -not -name *.part*.rar \) -or -name *.part01.rar -exec unrar x {} \;
The find part of the command seems to do its work fine, although the -exec doesn't seem to be invoked at all.
Thanks!
لا يوجد حل صحيح
لا تنتمي إلى StackOverflow