Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: brace expansion question
- X-seq: zsh-users 8677
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Eric Mangold <teratorn@xxxxxxxxxxxxx>
- Subject: Re: brace expansion question
- Date: Wed, 13 Apr 2005 10:03:15 +0200
- Cc: zsh-users@xxxxxxxxxx, grover mitchell <baguagrover@xxxxxxxxx>
- In-reply-to: <37104.202.128.83.123.1113366035.squirrel@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: Eric Mangold <teratorn@xxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx, grover mitchell <baguagrover@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <729088040504121813272d8ef2@xxxxxxxxxxxxxx> <37104.202.128.83.123.1113366035.squirrel@xxxxxxxxxxxxxxxxx>
Hi Eric and Grover :)
* Eric Mangold <teratorn@xxxxxxxxxxxxx> dixit:
> > foo1{01..10}
> > bar2{01..10}
> >
> > Is there any way to have zsh do a brace expansion on the contents of this
> > file?
> This is kind of a lame way to do it. Hopefully someone has something
> better :)
>
> for word in `cat file`; eval echo $word
I don't find it lame, but since the file can be quite large, that
expansion could result in a very long command line. Maybe this is
better (untested!!!):
cat file | while read line ; eval print $line
> Unfortunately, I don't see a parameter expansion flag that performs brace
> expansion on the result. It seems like there ought to be one.
I don't remember right now :(
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author