Unrar: arquivos resultantes que desaparecem

0

Ok, então eu tenho um diretório que contém toda uma carga de pastas contendo arquivos RAR, que eu gostaria de usar um script para recursivamente unrar.

O script que tenho parece funcionar (extraindo o arquivo resultante para o diretório / pasta a partir do qual ele é executado), no entanto, quando ele é concluído, ele desaparece e passa para o próximo, que também desaparece. / p>

Independentemente disso, o arquivo resultante não extraído continua desaparecendo - e não tenho idéia do motivo. Não importa se eu estou executando o script com o usuário michaelh, ou usando o sudo para fazer isso.

Meu pensamento é que isso é um erro de permissão em algum lugar, mas serei represado se souber onde. No entanto, pode ser outra coisa também - daí a razão para perguntar aqui.

Script

for f in 'find /media/michaelh/grill-g/video/to_sort -wholename *.rar'  
  do     
    rar e -inul $f 
done

Exemplo de estrutura de diretório e permissões

michaelh@grill:/media/michaelh/grill-g/video/to_sort$ ls -als
total 421624
     8 drwxrwxrwx 132 michaelh michaelh      8192 Jul 29 10:56 .
     4 drwxrwxrwx   4 michaelh michaelh      4096 Jul 19 18:42 ..
     4 drwxrwxrwx   2 michaelh michaelh      4096 Jul 27 03:47 foldername


michaelh@grill:/media/michaelh/grill-g/video/to_sort/foldername$ ls -als
total 243556
    4 drwxrwxrwx   3 michaelh michaelh     4096 Jul 26 01:22 .
    8 drwxrwxrwx 132 michaelh michaelh     8192 Jul 29 10:58 ..
    4 -rw-rw-r--   1 michaelh michaelh     1030 Jul 26 01:22 foldername.nfo
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:22 foldername.r00
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:45 foldername.r01
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:38 foldername.r02
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:29 foldername.r03
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:33 foldername.r04
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:23 foldername.r05
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 04:50 foldername.r06
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:28 foldername.r07
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:29 foldername.r08
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:17 foldername.r09
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:28 foldername.r10
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:29 foldername.r11
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 01:26 foldername.r12
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:01 foldername.r13
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:12 foldername.r14
 8780 -rw-rw-r--   1 michaelh michaelh  8970889 Jul 26 01:13 foldername.r15
14672 -rw-rw-r--   1 michaelh michaelh 15000000 Jul 26 05:28 foldername.rar
    4 -rw-rw-r--   1 michaelh michaelh      969 Jul 25 22:02 foldername.sfv
    
por thewinchester 29.07.2013 / 03:05

1 resposta

0

Resolvido alterando os argumentos que estão sendo passados, conforme encontrado, o unrar após pesquisas posteriores é notório por causar erros de CRC em arquivos de várias partes.

for f in 'find /media/michaelh/grill-g/video/to_sort -wholename *.rar'  
  do     
    rar x -kb -inul $f 
done

substituindo e por x-kb superou os erros de CRC e não removeu os arquivos depois de concluído.

    
por thewinchester 20.01.2014 / 15:37