LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-11-2015, 09:01 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Extract multiple files in Linux.


Hello.
I have some "Rar" files like :

x.part1.rar , x.part2.rar and...

In Windows OS and with "WinRar" after Extract I just have one file that contain all file but how can I do it In Linux?
These files are split and after extract merge automatically.

Thank you.
 
Old 10-11-2015, 09:11 AM   #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
Programs like unrar automatically detect if you have a multi-volume archive and will search for the other parts in the current directory to extract the data from them.
 
Old 10-11-2015, 09:14 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You can just user unrar from the command line, give the first file as an argument and it will automatically extract from all the files. I think that some of the GUI tools will do the same also. It should be noted though that the non-free version of unrar may be needed to do this.
 
Old 10-11-2015, 10:09 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I did :

unrar -x x.part1.rar

But problem not solved.

I used Peazip too but not solved too
 
Old 10-11-2015, 10:14 AM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
As I mentioned, you may need to non-free version of unrar, if you don't already have it. There's also the possibility, of course, that you don't have all the parts or they're not all complete.
 
Old 10-11-2015, 10:26 AM   #6
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
Quote:
Originally Posted by hack3rcon View Post
I did :

unrar -x x.part1.rar

But problem not solved.

I used Peazip too but not solved too
You are a seasoned member here, you should know already that "problem not solved" is not something that helps us to help you, especially since I and other members already asked you to provide essential information in other threads repeatedly.
Since you not seem to be willing to help us to help you I am out of this thread.
 
Old 10-11-2015, 10:41 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by 273 View Post
As I mentioned, you may need to non-free version of unrar, if you don't already have it. There's also the possibility, of course, that you don't have all the parts or they're not all complete.
As I said, Files are complete and can extracted via Windows very nice.

---------- Post added 10-11-15 at 10:41 AM ----------

Quote:
Originally Posted by TobiSGD View Post
You are a seasoned member here, you should know already that "problem not solved" is not something that helps us to help you, especially since I and other members already asked you to provide essential information in other threads repeatedly.
Since you not seem to be willing to help us to help you I am out of this thread.
Can you show me which information?
If you want to ask same question can you tell me which information you provided?
 
Old 10-11-2015, 10:46 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by hack3rcon View Post
As I said, Files are complete and can extracted via Windows very nice.
Well, all I can do is repeat that you might want to check you have the non-free version of unrar installed because my experience was that the free version didn't work for multi-part archives but the non-free version did. In Debian it seems you get the non-free version by installing the unrar package provided you have your system configured to accept non-free software but the free version may have been installed instead as a dependency while installing something else?
 
Old 10-11-2015, 10:53 AM   #9
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
Quote:
Originally Posted by hack3rcon View Post
Can you show me which information?
If you want to ask same question can you tell me which information you provided?
As I told you before, we need as exact information as we can get.
This won't work:
- doesn't work
- "problem not solved" without exact explanation of the problem

This will work:
- I get the error "{copy in the exact error message you get}" when running this command
- I expect the command to do this, but instead I get {exact description of what you get}

So in your case, what exactly happens when you run the command? You don't tell us if it returns an error mesaage, if it extracts only parts of archive, ... .
 
Old 10-11-2015, 10:58 AM   #10
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
It extract just some parts and not all of them.
 
Old 10-11-2015, 11:15 AM   #11
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
Quote:
Originally Posted by hack3rcon View Post
It extract just some parts and not all of them.
Are you sure that the parts that are not extracted are parts of the archive you want to extract? If they are then unrar should throw error messages.
 
Old 10-17-2015, 11:12 AM   #12
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
It show me :

Extracting Ruby Programming From Scratch/01 Ruby Installation - Setting up Software/001 Ruby Installation.jpeg OK
Extracting Ruby Programming From Scratch/01 Ruby Installation - Setting up Software/001 Ruby Installation.mp4 OK
Extracting Ruby Programming From Scratch/01 Ruby Installation - Setting up Software/002 Ruby Installation Setting up Path Variable.mp4 OK
Extracting Ruby Programming From Scratch/02 Introduction to Ruby and Interactive Ruby/001 Introduction to Ruby - Interactive Ruby Programming IRB.mp4 OK
Extracting Ruby Programming From Scratch/02 Introduction to Ruby and Interactive Ruby/002 Interactive Ruby Programming IRB Shell .mp4 OK
Extracting Ruby Programming From Scratch/03 Getting Started with Ruby Programming/001 Ruby Syntax and Basics Getting Started.mp4 OK
Extracting Ruby Programming From Scratch/03 Getting Started with Ruby Programming/002 Ruby Syntax and Basics - Coding in Workspace and Create Project.mp4 OK
Extracting Ruby Programming From Scratch/04 Taking User Input/001 Taking User Input.mp4 OK
Extracting Ruby Programming From Scratch/04 Taking User Input/002 Taking User Input - Further Discussion with Codes.mp4 OK
Extracting Ruby Programming From Scratch/05 Methods - Functions in Ruby/001 Methods - Functions in Ruby.mp4 OK
Extracting Ruby Programming From Scratch/05 Methods - Functions in Ruby/002 More on Methods in Ruby.mp4 OK
Extracting Ruby Programming From Scratch/06 Conditional Statements/001 Conditional Statements IF, ELSE IF, ELSE.mp4 Failed
1 Failed
 
Old 10-17-2015, 11:29 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
so extraction failed. That means either the archive file was corrupted or the utility you use cannot find the next part of the archive or disk full or probably something else.
Can you tell us what will
dpkg -l unrar
respond?
 
Old 10-17-2015, 11:43 AM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this would have helped in the FIRST POST
Quote:
Extracting Ruby Programming From Scratch/04 Taking User Input/
you have BLANK SPACES IN THE FILE NAME

this can and dose cause problems
 
Old 10-18-2015, 11:30 AM   #15
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by John VV View Post
this would have helped in the FIRST POST

you have BLANK SPACES IN THE FILE NAME

this can and dose cause problems
yes they do, i had a similar problem here, and the solution was here
http://www.linuxquestions.org/questi...ing-on-851859/

Quote:
Originally Posted by David the H. View Post
Code:
IFS=$'\n'

for file in *.avi; do 
	echo ${file.*}
done

unset IFS
for you it would probably be
Code:
IFS=$'\n'

unrar -x x.part1.rar 

unset IFS
good luck
 
  


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
BASH or AWK: extract columns in multiple files and combine to a single file cristalp Programming 2 03-15-2012 11:55 AM
[SOLVED] Bash script to extract multiple files with password musonio Linux - Software 8 03-12-2011 04:11 AM
Batch Text Extract Multiple Files lixbie Programming 10 07-02-2008 09:56 AM
How do I extract files from .daa files under linux? izquierdista Linux - Software 8 04-09-2007 09:37 PM
Extract multiple bz2 files hq4ever Linux - Newbie 4 06-24-2004 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:26 PM.

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