Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-05-2010, 02:46 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 22

Rep: Reputation: 0
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
Old 04-05-2010, 02:54 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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:

you can just do the following to unpack only those:
for r in $(cat names); do unrar x $r; done

Old 04-05-2010, 03:34 PM   #3
LQ Newbie
Registered: Aug 2009
Posts: 22

Original Poster
Rep: Reputation: 0
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.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is a Filelist? criacuervo Linux - Newbie 3 08-24-2009 03:29 AM
how to set redirect command can be wrote such as:$ ls > filelist.txt,are there hillpigLQ Linux From Scratch 2 09-19-2008 10:55 PM
scripting problem rm filelist milke Programming 9 07-07-2006 06:41 AM
wine dc++ shuts down when trying to download or get filelist tudilica Linux - Software 3 04-18-2005 07:54 AM
Slackware's FILELIST.TXT DaHammer Slackware 5 09-26-2004 05:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration