From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2194 invoked from network); 21 Feb 1997 15:19:11 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 21 Feb 1997 15:19:11 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA05466; Fri, 21 Feb 1997 10:12:28 -0500 (EST) Resent-Date: Fri, 21 Feb 1997 10:05:28 -0500 (EST) Date: Fri, 21 Feb 1997 16:07:13 +0100 (MET) From: Wolfgang Hukriede Message-Id: <199702211507.QAA13779@sally.ifm.uni-kiel.de> To: zsh-users@math.gatech.edu Subject: Re: 2 more questions Resent-Message-ID: <"2dooA3.0.vC1.ucR3p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/693 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Uli Zappe wrote: > 2. How do I pipe the elements of an array into a command? If I do a > > echo $ARRAY | command > > the elements are separated only by whitespace instead of newlines or simply use a for loop, works with /bin/sh also: for i in $ARRAY; do echo $i; done | command. Greetings, Wolfgang.