Re: First project done Thanks to your help :))

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: sam(at)casheze(dot)biz
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: First project done Thanks to your help :))
Date: 2003-05-09 02:32:05
Message-ID: 20030509023205.GA6302@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, May 08, 2003 at 20:27:25 -0600,
sam(at)casheze(dot)biz wrote:
> Now I want to take a 300meg file and break it up into smaller files I can
> read with text readers.
>
> I just can not find how to read one file - write it out to lets say 40 files
> I want to read by line for a given # of lines (I will have to just guess at
> this),
> then when I get to that # start writing to file 2 then to file 3 when I get
> to 2 * the # then 3 *.....
> figure there should be some way to set up an array (file0....file40),

The 'split' command might do what you want.

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Molly Gibson 2003-05-09 22:03:23 formatting output: grouping results with identical fields
Previous Message sam 2003-05-09 02:27:25 First project done Thanks to your help :))