How To Split A File In Two Rar Parts?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How To Split A File In Two Rar Parts?
# 1  
Old 02-10-2014
Linux How To Split A File In Two Rar Parts?

I Am connected to Whatbox.ca Seed Box Via SSH!!

i have a file named avicii.mp3. I Want to split it into two rar parts as Apart1.rar and Apart2.rar So That When i Download Both the parts to My PC And Extract Them They Come out As Whole Avicii.mp3.

There is also one more problem!! When I Rar A file These Additional Files Below Also Get Added In The Archive Automatically!!! I don't want them please help
Code:
Adding    .bash_logout                                                OK
Adding    .bashrc                                                     OK
Adding    .bash_profile                                               OK
Adding    .rtorrent.rc                                                OK
Adding    .bash_history                                               OK

Moderator's Comments:
Mod Comment code tags are for data like display output too...

Last edited by vbe; 02-10-2014 at 05:01 AM..
# 2  
Old 02-10-2014
How do you plan on generating the rar? The tools for that probably have options to explore for maximum file/media size. I would suggest that the options you have given on your command line have included all the files in your current directory.

Can you past the command you have used?



You can achieve a rough & ready process with split

Use this to split on a number of bytes, then concatenate the files together (in the right order) to recreate the original:-

Code:
compress avicii.mp3
split -b 5m avicii.mp3.Z avicii

Obviously, adjust 5m to a suitable size. The files created will be called avicii.aa, avicii.ab, etc.

Now binary ftp the files and use cat or the DOS equivalent type to join them back up. You can open a .Z file with tools such as WinZip. So either:-
Code:
cat avicii.aa avicii.ab > avicii.mp3.Z

or:-
Code:
type avicii.aa avicii.ab > avicii.mp3.Z


Does this solve your issue? My workaround is not as neat as using the tools to create a rar file though.




Regards,
Robin
# 3  
Old 02-10-2014
Quote:
Originally Posted by rbatte1
How do you plan on generating the rar? The tools for that probably have options to explore for maximum file/media size. I would suggest that the options you have given on your command line have included all the files in your current directory.

Can you past the command you have used?



You can achieve a rough & ready process with split

Use this to split on a number of bytes, then concatenate the files together (in the right order) to recreate the original:-

Code:
compress avicii.mp3
split -b 5m avicii.mp3.Z avicii

Obviously, adjust 5m to a suitable size. The files created will be called avicii.aa, avicii.ab, etc.

Now binary ftp the files and use cat or the DOS equivalent type to join them back up. You can open a .Z file with tools such as WinZip. So either:-
Code:
cat avicii.aa avicii.ab > avicii.mp3.Z

or:-
Code:
type avicii.aa avicii.ab > avicii.mp3.Z

Does this solve your issue? My workaround is not as neat as using the tools to create a rar file though.




Regards,
Robin

Hey Hi!!! Ok so The Whatbox.ca Seed box Has Its own File Manager where i can rename the file and create a new folder!!

there is one already default folder called "Files" (where the downloaded content is saved). Anyway i moved Avici.mp3 from the files folder to outside.

This Is The command I Used to rar the mp3 file.

rar a Avici.mp3.rar

Now When i type the rar command and press enter it also adds the following bash files mentioned above with it which is really annoying!!!Smilie

So This is what i want To Do, Rar avici.mp3 in two parts (Rename it as Part1.rar and Part2.rar) without those annoying bash files.. and the output should be such as wen i download both parts and extract Part 1 (Part 2 also gets extracted Automatically) and avici.mp3 as the extracted data!! (I am A Newbie Sorry If I Sound Like A fool)
# 4  
Old 02-10-2014
Quote:
Originally Posted by anime12345
There is also one more problem!! When I Rar A file These Additional Files Below Also Get Added In The Archive Automatically!!!
As an aside: exclamation marks are not gregarious animals. It is perfectly acceptable to end a sentence with a single full stop.

About your problem: all these files start with a dot (".bashrc"), which means they are "hidden" in UNIX (=not displayed by "ls" unless specifically requested by the switch "-a"). You haven't provided the command you use to pack the files into the archive, i am left to speculate about the reasons but my suspicion is you haven't noticed they are there at all and somehow included them without even recognizing their presence.

My suggestion is to explicitly name the file(s) you want to include in the archive instead of using wildcards, directory names or something such. This should take care of the problem.

I hope this helps.

bakunin
# 5  
Old 02-10-2014
Quote:
Originally Posted by bakunin
As an aside: exclamation marks are not gregarious animals. It is perfectly acceptable to end a sentence with a single full stop.

About your problem: all these files start with a dot (".bashrc"), which means they are "hidden" in UNIX (=not displayed by "ls" unless specifically requested by the switch "-a"). You haven't provided the command you use to pack the files into the archive, i am left to speculate about the reasons but my suspicion is you haven't noticed they are there at all and somehow included them without even recognizing their presence.

My suggestion is to explicitly name the file(s) you want to include in the archive instead of using wildcards, directory names or something such. This should take care of the problem.

I hope this helps.

bakunin

Can U Please Post The Command For This.

1. Rename avici.mp3 into two parts part1.rar and part 2.rar
2.As part 1 extracts part 2 also extracts automatically and avici.mp3 as the extracted data.
3. Excluding those additional bash files. Smilie
# 6  
Old 02-10-2014
I believe that we are trying to help, but need a bit more clarity. Have you tried the suggestions or answered the question of other postings?

Is there a reason that rar is required?
Have you read the manual pages for all the options?


If you provide the information requested, we will try to help you.



Robin
# 7  
Old 02-10-2014
Quote:
Originally Posted by rbatte1
I believe that we are trying to help, but need a bit more clarity. Have you tried the suggestions or answered the question of other postings?

Is there a reason that rar is required?
Have you read the manual pages for all the options?


If you provide the information requested, we will try to help you.



Robin
Hey,Hi Yes rar is very much required because after Archiving i will upload the files to file hosts. I Have Been Very Clear Sir As of What I Want. What More Specifications do you need I Will Try To Provide.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Split the all files in to 8 parts in a folder

Hi, I have different files and i need to split the files in that folder split in to 8 parts with equal number of lines....! any fastest way of doing this in awk. for an example i have a file called "BillingDetails_BaseFile.csv" with total line count 65536 and i need to split in to 8 parts... (1 Reply)
Discussion started by: Raghuram717
1 Replies

2. Shell Programming and Scripting

Split line in 4 parts

Hi Guys, I have file A.txt 1 2 3 4 5 6 7 8 9 10 11 Want Output :- 1 2 3 (3 Replies)
Discussion started by: pareshkp
3 Replies

3. UNIX for Dummies Questions & Answers

Split a file into parts only if the first field is different

Hi, I have a file like this: aaa 123 aaa 223 aaa 225 bbb 332 bbb 423 bbb 6755 bbb 324 ccc 112 ccc 234 ccc 897 Which I need to split into several files, something like split -l 3 but the way that the lines with the same names would only go into one file: (7 Replies)
Discussion started by: coppuca
7 Replies

4. Shell Programming and Scripting

Split file into n parts.

Hi all: I have a 5-column tab-separated file. The only thing that I want to do with it is to split it. However, I want to split it with a 80/20 proportion -- randomized, if possible. I know that something like : awk '{print $0 ""> "file" NR}' RS='' input-file will work, but it only... (6 Replies)
Discussion started by: owwow14
6 Replies

5. Shell Programming and Scripting

Incrementing parts of ten digits number by parts

I have number in file which contains date and serial number: 2013101000. The last two digits are serial number (00). So maximum of serial number is 100. After reaching 100 it becomes 00 with incrementing 10 which is day with max 31. after reaching 31 it becomes 00 and increments 10... (31 Replies)
Discussion started by: Natalie
31 Replies

6. UNIX for Dummies Questions & Answers

Using a rar file on a suse linux

Hi, I have this file in .rar format and need to use it on a suse linux system. I have transfered the file into the system and tried to unpack it using unrar command but i got this l# unrar e Alarm.rar UNRAR 3.51 freeware Copyright (c) 1993-2005 Alexander Roshal ??? - the file header... (5 Replies)
Discussion started by: mena
5 Replies

7. UNIX for Dummies Questions & Answers

Move a .zip file to a unix system in .rar format

Hi all, need help here in moving a .zip file into a suse system and want it to be in .rar format. How can i do this? (1 Reply)
Discussion started by: mena
1 Replies

8. UNIX for Dummies Questions & Answers

Unzip a .rar file

Hi, How to unzip a .rar file in unix. I tried unrar command but it doesnt work. Any help will be appreciated Thanks (10 Replies)
Discussion started by: irudayaraj
10 Replies

9. UNIX for Dummies Questions & Answers

how to extract a .rar file

Hi ! I have a abc.rar file. I want to extract this file.. pls help. OS Details : SunOS papillon 5.10 Generic_127111-11 sun4us sparc FJSV,GPUZC-M (1 Reply)
Discussion started by: dashok.83
1 Replies

10. UNIX Desktop Questions & Answers

file zip,rar,tar,compress,uncompress,unzip,unrar

i want know how to compress and uncompress file using unix, compress uncompress,zip,unzip,rar,unrar,how its work and more about this.:confused: (1 Reply)
Discussion started by: ismael xavier
1 Replies
Login or Register to Ask a Question