X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 829D8475D91 for ; Thu, 8 May 2003 22:31:25 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 8F265474E4F for ; Thu, 8 May 2003 22:30:47 -0400 (EDT) Received: (qmail 6329 invoked by uid 500); 9 May 2003 02:32:05 -0000 Date: Thu, 8 May 2003 21:32:05 -0500 From: Bruno Wolff III To: sam@casheze.biz Cc: pgsql-php@postgresql.org Subject: Re: First project done Thanks to your help :)) Message-ID: <20030509023205.GA6302@wolff.to> Mail-Followup-To: sam@casheze.biz, pgsql-php@postgresql.org References: <000801c315d2$89e68fd0$a3b56644@marcottesamiam> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000801c315d2$89e68fd0$a3b56644@marcottesamiam> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-36.7 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,NO_DNS_FOR_FROM, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/5 X-Sequence-Number: 2010 On Thu, May 08, 2003 at 20:27:25 -0600, sam@casheze.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.