The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Splitting a Larger File Into Mutiple Smaller ones. madhubt_1982 Shell Programming and Scripting 1 03-22-2008 10:10 AM
Cutting a large log file in to smaller ones MrTangent Shell Programming and Scripting 11 11-07-2007 06:55 AM
Splitting large files Rvbs Shell Programming and Scripting 2 12-07-2005 08:29 AM
Splitting large file into small files dncs Shell Programming and Scripting 4 06-08-2005 11:02 AM
Splitting a large log file simmonet UNIX for Dummies Questions & Answers 8 09-19-2001 04:14 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-16-2008
vsnreddy vsnreddy is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 1
splitting the large file into smaller files

hi all
im new to this forum..excuse me if anythng wrong.

I have a file containing 600 MB data in that. when i do parse the data in perl program im getting out of memory error.

so iam planning to split the file into smaller files and process one by one.

can any one tell me what is the code will do for spliting the bigger file.

what is the better way to achieve this ?
  #2 (permalink)  
Old 11-16-2008
samsbery samsbery is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 4
Use Unix split command

Hi,

If you are working on Unix, then you can use unix split command. Its quick and does the split as per your requirement.

Try

split -b [bytes][k/m] filename

where you can provide bytes in Kilobytes or Megabytes by putting k/m after the byte number.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0