From: Nick Sieger Date: 2006-11-30T01:53:10+09:00 Subject: Re: Splitting a CSV file into 40,000 line chunks ------=_Part_30152_10870085.1164819186105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/29/06, Drew Olson wrote: > > I've written a script to split a .csv file into smaller .csv files of > 40,000 lines each. The intent here is to break the file down enough so > that excel does not have issues reading each chunk. My code takes a > filename from the command line and breaks it down as so: Not ruby, but why not use "split -l 40000"? Cheers, /Nick ------=_Part_30152_10870085.1164819186105--