1834796 Members
2502 Online
110070 Solutions
New Discussion

Re: Spilt the large file

 
ivychung2
Frequent Advisor

Spilt the large file

I have a large file ( over 10G size ) , I want to spilt it into 10 parts , each of them are 1G evenly , what is the simplest way to do that ? thx
7 REPLIES 7
ivychung2
Frequent Advisor

Re: Spilt the large file

sorry , it should be "split" the file .
Arunvijai_4
Honored Contributor

Re: Spilt the large file

Hello,

You can use "split" command. Do a man split to find more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ivychung2
Frequent Advisor

Re: Spilt the large file

I got it , thx
Senthil Kumar .A_1
Honored Contributor

Re: Spilt the large file

Hi ivychung2,

This thread deserves a Bunny, if it has solved your purpose. :)

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Raj D.
Honored Contributor

Re: Spilt the large file

Hi ibychung2 ,

You can do this to split the 10G file into 10 parts :

# split -b 1000000k filename


each splitted file size will be 1GB in size.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Peter Godron
Honored Contributor

Re: Spilt the large file

Hi,
you can split the file with:
split -b 1024m filename

This will create 10 1Gb files named:
xaa,xab,xac ...
Frank de Vries
Respected Contributor

Re: Spilt the large file

Hi ibychung2 ,

You can split the 10G file into 10 parts
like this:

Example:
# split -b 1000000k filename


each splitted file size will be 1GB in size.

Regards,
Look before you leap