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?
# 8  
Old 02-10-2014
This might help you

Usage :
Code:
rar a -vsize  Output input

Code:
akshay@Aix:~$ ll -h  *.rar -1
-rw-rw-r-- 1 akshay akshay 7.7M Feb 10 21:46 cTraceo-stable.rar

akshay@Aix:~$ rar a -v3M tester cTraceo-stable.rar 

RAR 4.20   Copyright (c) 1993-2012 Alexander Roshal   9 Jun 2012
Trial version             Type RAR -? for help

Evaluation copy. Please register.

Creating archive tester.rar

Adding    cTraceo-stable.rar                                             
Calculating the control sum     

Creating archive tester.part2.rar

...       cTraceo-stable.rar                                             
Calculating the control sum     

Creating archive tester.part3.rar

...       cTraceo-stable.rar                                          OK 
Calculating the control sum     
Done


akshay@Aix:~$ ll -h  *.rar -1
-rw-rw-r-- 1 akshay akshay 7.7M Feb 10 21:46 cTraceo-stable.rar
-rw-rw-r-- 1 akshay akshay 2.9M Feb 10 21:50 tester.part1.rar
-rw-rw-r-- 1 akshay akshay 2.9M Feb 10 21:50 tester.part2.rar
-rw-rw-r-- 1 akshay akshay 2.0M Feb 10 21:50 tester.part3.rar

These 2 Users Gave Thanks to Akshay Hegde For This Post:
# 9  
Old 02-11-2014
Quote:
Originally Posted by Akshay Hegde
This might help you

Usage :
Code:
rar a -vsize  Output input

Code:
akshay@Aix:~$ ll -h  *.rar -1
-rw-rw-r-- 1 akshay akshay 7.7M Feb 10 21:46 cTraceo-stable.rar

akshay@Aix:~$ rar a -v3M tester cTraceo-stable.rar 

RAR 4.20   Copyright (c) 1993-2012 Alexander Roshal   9 Jun 2012
Trial version             Type RAR -? for help

Evaluation copy. Please register.

Creating archive tester.rar

Adding    cTraceo-stable.rar                                             
Calculating the control sum     

Creating archive tester.part2.rar

...       cTraceo-stable.rar                                             
Calculating the control sum     

Creating archive tester.part3.rar

...       cTraceo-stable.rar                                          OK 
Calculating the control sum     
Done


akshay@Aix:~$ ll -h  *.rar -1
-rw-rw-r-- 1 akshay akshay 7.7M Feb 10 21:46 cTraceo-stable.rar
-rw-rw-r-- 1 akshay akshay 2.9M Feb 10 21:50 tester.part1.rar
-rw-rw-r-- 1 akshay akshay 2.9M Feb 10 21:50 tester.part2.rar
-rw-rw-r-- 1 akshay akshay 2.0M Feb 10 21:50 tester.part3.rar


hey thankx for the code

rar a -vsize Output input

But The Bash Files Are Still Get Included This Is The Command I Typed.

Code:
rar a -v3M Avicii.mp3.rar

RAR 5.00 Copyright (c) 1993-2013 Alexander Roshal 22 Aug 2013
Trial version Type RAR -? for help

Evaluation copy. Please register.

Creating archive Avicii.mp3.rar

Adding .bash_logout OK
Adding .bashrc OK
Adding .bash_profile OK
Adding .rtorrent.rc OK
Adding .bash_history OK
Adding Avicii.mp3
Calculating the checksum

Creating archive Avicii.mp3.part2.rar

... Avicii.mp3
Calculating the checksum

Creating archive Avicii.mp3.part3.rar

... Avicii.mp3
Calculating the checksum

Creating archive Avicii.mp3.part4.rar

... Avicii.mp3 OK
Calculating the checksum
Done



How Should I Type Ur First Command?

Code:
akshay@Aix:~$ ll -h *.rar -1 -rw-rw-r-- 1 akshay akshay 7.7M Feb 10 21:46 cTraceo-stable.rar

When I Type It,It Say Command Is Invalid

-rw-rw-r-- 1 Avicii.mp3.rar Or Did I Type It Wrong??

Last edited by Scott; 02-11-2014 at 06:19 AM.. Reason: Code tags
# 10  
Old 02-11-2014
Hope you are reading answers
Just try :

Step 1
Code:
rar a -v3M tester Avicii.mp3.rar

if you want to list rar files generated then try following

Code:
ls -alF -h *.rar

# 11  
Old 02-11-2014
Quote:
Originally Posted by Akshay Hegde
Hope you are reading answers
Just try :

Step 1
Code:
rar a -v3M tester Avicii.mp3.rar

if you want to list rar files generated then try following

Code:
ls -alF -h *.rar

[code]rar a -v3M tester Avicii.mp3.rar

Code:
RAR 5.00   Copyright (c) 1993-2013 Alexander Roshal   22 Aug 2013
Trial version             Type RAR -? for help

Evaluation copy. Please register.

Cannot open Avicii.mp3.rar
No such file or directory
Creating archive tester.rar

WARNING: No files


Last edited by Scott; 02-11-2014 at 06:21 AM.. Reason: Replaced code tags for icode tags
# 12  
Old 02-11-2014
Do you have Avicii.mp3.rar file in current working directory ?
# 13  
Old 02-11-2014
Quote:
Originally Posted by Akshay Hegde
Do you have Avicii.mp3.rar file in current working directory ?
What Do U Mean By In Current Working Directory?

My Whatbox Act Offers A File manager With A folder Called Files Already By Default! Avicii.mp3 Was Saved In The files folder But I Dragged It Outside!! so now On the outside There is The Files Folder And Avicii.mp3
# 14  
Old 02-11-2014
Post output of ls -1 and ls -1 ..
This User Gave Thanks to Akshay Hegde For This Post:
 
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