Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: lines to array
- X-seq: zsh-users 11191
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: lines to array
- Date: Wed, 14 Feb 2007 00:43:10 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nb1sTBjMA2WnFIMiIK806nKZSCaL1uIlGIBfVhfKO6Gxnzoj6zfYjm07m/1UASzyoYMAJ+Kn6f8hgMdInD2QSazG58YzU6H86jmTJ+LBW/HmLLe5Go9ZZjJZcnM8flUvW3gf7LtW0bdB2SUnQcf24q19FVIRkxV40Q8eppaUT9s=
- In-reply-to: <20070214.050256.41196704.Meino.Cramer@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070214.050256.41196704.Meino.Cramer@xxxxxx>
On 2/13/07, Meino Christian Cramer wrote:
I am looking for a zsh-like way to put each line of the output for
example 'ls -l' into an array.
Is this possible without "looping" ?
How about this:
array=( "${(f)$(ls -l)}" )
That should work.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author