Sample Header Ad - 728x90

Trying to unrar specific files within a specific directory

0 votes
0 answers
35 views
I have a bash script that extracts files from a .rar file. I want to extract only *.foo and mydirectory/*.bar. I followed https://unix.stackexchange.com/questions/292754/unrar-specific-files-using-wildcards to get at the first group of files, but that doesn't work for second. I tried using unrar -x blah.rar mydirectory/\*.bar (and just *), which got me nothing and unrar -x blah.rar mydirectory which just got me an empty directory named mydirectory/. Omitting the trailing slash got me nothing.
Asked by Frotz (121 rep)
Nov 21, 2024, 07:50 PM