From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3955 invoked from network); 27 Jun 1997 22:43:55 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 27 Jun 1997 22:43:54 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA00009; Fri, 27 Jun 1997 18:35:35 -0400 (EDT) Resent-Date: Fri, 27 Jun 1997 18:34:16 -0400 (EDT) From: unpingco@mpl.ucsd.edu (Jose Unpingco) Message-Id: <9706272238.AA12078@cryptica.UCSD.EDU> Subject: lines as array elements To: zsh-users@math.gatech.edu (zsh) Date: Fri, 27 Jun 1997 15:38:18 -0700 (PDT) X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"3RALg.0.kJ7.e_3jp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/921 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu hi, I have a file that looks like this: -503 306 -498 428 -500 435 -501 588 -497 440 -501 593 -505 451 -502 601 -510 324 -511 454 -505 328 -511 459 -506 333 -509 464 -520 342 -492 463 what I'd like to do is get each line into an array element like x[1]="-503 306 -498 428" up to x[8]="-520 342 -492 463" I've tried x=(`cat file`) but that splits on the spaces between the numbers. I've looked at the IFS variable and tried to change it to newline but that doesn't work as expected. Thanks. -- Thank you for your time and consideration. _ - - - _ /)- - _ _ / |_o_/ - _ \__ - _ \ \_ - _ _ _ _ _ _ _ _ _ _ __ __ _ _ - Jose Unpingco Mail Code ECE 0407 WK# (619) 534-5904