Unrar entire file in a directory without a hint

I tried:

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

Output:

Extract from. /setup.part2.rar

Extract from. /setup.part1.rar

RORY / nsfw.zip already exists. Overwrite it? [Y] es, [N] o, [A] ll, n [E] ver, [R] ename, [Q] u A

I can not push this; both hands are busy, unfortunately. thought the -o flag would do it, but no.

+9
source share
2 answers

You need to specify -o+ to enable automatic rewriting:

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

From unrar use:

 o[+|-] Set the overwrite mode 
+23
source

This works devnull, thanks a lot. By the way, how to extract it to another directory?

0
source

All Articles