LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2014, 05:36 PM   #1
Arkhel
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
Split Large Files 10gb


How split large files 10gb or 20 gb?
 
Old 11-04-2014, 05:38 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 173Reputation: 173
what have you tried so far?

rar, 7zip?
 
Old 11-05-2014, 07:08 AM   #3
masdono
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
You can use split command :
split -b=100M -d file.txt file
 
1 members found this post helpful.
Old 11-05-2014, 11:05 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,475
Blog Entries: 10

Rep: Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639Reputation: 1639
Quote:
Originally Posted by masdono View Post
You can use split command :
split -b=100M -d file.txt file
I agree with using split(1):

Some added clarifications:

-b specifies max size of each output file for when you split something large down into smaller files; obviously you can use notations like 1G, 10G, 100K and such

-d means to add numeric suffixes to the newly created output file(s)

file.txt is your input file

file is the starting name (template) for the output files and I don't know if you can use like a regular expression to control how the names progress. I do know that if you choose too small of a -b size and you need to create therefore >999 files or some number, it may fail and complain that you ran out of suffixes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Split large file into smaller files mikes88 Programming 29 03-22-2012 11:14 AM
Read large text files (~10GB), parse for columns, output vache Programming 57 04-07-2009 11:51 PM
Split Large Very Files (Software) kolmogorov Solaris / OpenSolaris 5 11-18-2005 12:46 PM


All times are GMT -5. The time now is 02:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration