LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-09-2015, 02:58 PM   #1
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Rep: Reputation: 0
Question How to extract multi-part rar files from the command line??


I know there is a way to do this, I was successful a few days ago but my history isn't showing the command (had multiple terminal tabs open ).. I have a folder of 1,000+ files so about 50 files to extract. I want to be able to enter a command and have it go through all the files in the folder.
 
Old 06-09-2015, 03:24 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
For multipart rar files I usually use the unrar command on the first file of a series and it extracts the complete series.
 
Old 06-09-2015, 03:37 PM   #3
cilbuper
Member
 
Registered: Mar 2008
Posts: 141

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
For multipart rar files I usually use the unrar command on the first file of a series and it extracts the complete series.
Thanks. That is the first part. I used the command "unrar e filename.r00" or "unrar e filename.rar" and it works for the file.

Now how do I get it to do all the files in the folder.
I have tried:
"unrar e filename[1..20].r00"
"unrar e filename{1..20}.r00"
"unrar e filename*.r00"

and none of those work..
 
Old 06-09-2015, 03:41 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Try it with
Code:
for i in {1..20}
do
   unrar filename$i.r00
done
 
  


Reply



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
Combine and extract .rar files villumanati Linux - Newbie 2 09-10-2008 03:59 PM
how to extract RAR files in linux mayankh Linux - Software 3 09-15-2006 04:34 AM
Multi-part password protected .rar files extraction lx3000 Linux - Software 6 04-13-2006 09:02 AM
Extracting multi-part RAR archives? Kixdemp Linux - Software 2 03-22-2006 05:44 PM
How do I extract miltuple rar files? bankrupt Linux - Newbie 2 12-29-2003 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:33 AM.

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