1

How do you extract a single file from a rar archive that starts with a dash? e.g. the archive listing looks like:

-= foo =-.jpg -= bar =-.jpg

I've tried unrar e archive.rar ./-= foo =-.jpg and unrar e archive.rar "./-= foo =-.jpg" but unrar seems to read that as the literal filename. I've also tried unrar e archive.rar \-=\ foo\ =-.jpg without success.

Thanks.

1 Answer 1

2

To get unrar to process the file correctly, I found about a handy operator , the double dash --, that seems to work system-wide by telling the system to end all option processing.

unrar e archive.rar -- "-= foo =-.jpg" does the trick

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.