linux - 3 common problems i want to solve using unrar bash -


i have common problem using unrar bash

i have bash

#!/bin/bash rar in ls *.rar     echo extrayendo $rar en pwd     unrar x $rar done 

this bash allows me unrar every .rar file have in directory, have 3 problems

  1. its every time need write .rar password, files use same password, think if add -p password should work right?
#!/bin/bash rar in ls *.rar     echo extrayendo $rar en pwd     unrar x -p password $rar done 
  1. this annoying problem have, when im unrar files .url,.html, .txt , .srt files appears, no problems .srt files do, because need them, movie, need tell unrar delete .url, .txt , .html files or unrar file movie .mkv , .srt

  2. the last problems in every .rar files has .srt files named latino, espaƱol, spa,esp, etc. , want auto rename .srt files name of movie file, movie files videofile.mkv

i know may asking cant make work i've been trying 2 days , no luck :c


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -