On Sun, Aug 07, 2011 at 08:58:14PM +0530, Ramprasad Prasad wrote:

> I have a file that contains records of customer interaction
> The first column of the file is the batch number(INT) , and other columns
> are date time , close time etc etc
> 
> I have to sort the entire file in order of the first column .. but the
> problem is that the file is extremely huge.
> 
> For the largest customer it contains 1100 million records and the file is
> 44GB !
> how can I sort this big a file

Is there any reason not to use the system sort?  GNU sort uses an
external R-way merge.  It's designed for this sort of thing.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to