0

I use this piece of command to unrar a bunch of files from a folder (which has a lot of subfolders).

All the unpacked files do end up in the same main folder though. How do I unrar every file to it's own subfolder?

find . -name "*.rar" -exec unrar x -o- {} ;

Example:

MAIN FOLDER

  • SUBFOLDER
  • file.rar

Ran the command, all files ended up in the main folder.

0 Answers0