Unrar from filelist
Hi LQ Users
I have a question. Is it posible to unrar from a filelist in the shell? I know the command for r in *.rar; do unrar x $r; done but the problem is that I have alot of backups in the folder and It's only lets say 10 out og 25 rar's I would like to unpack. that is because I have used winrar on my old windows mashine to take backup of my documents, family video's, etc... from Casper |
Hi, and welcome to LQ!
I'm not sure if I understand your request correctly, but: Assuming you have a file "names" that has 10 filenames in it, like so: Code:
file1.rar Code:
for r in $(cat names); do unrar x $r; done Cheers, Tink |
Thanks alot Tink
Thats did the output I was searching for. I had totally forgotten that I could use the command cat in that command. From Casper |
All times are GMT -5. The time now is 04:41 AM. |