Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
var expansion in glob pattern?
- X-seq: zsh-users 4766
- From: Sven Guckes <guckes@xxxxxxxxxxxxxxxxx>
- To: ZShell Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: var expansion in glob pattern?
- Date: Sat, 23 Mar 2002 19:56:49 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Most of my mail folders are small -
usually just questions and
answers about some program.
so I tried to run a quick statistics
on my Mail directory using the zsh
and its file globbing by size:
$ cd ~/Mail
$ for i in 1 2 3 4 5 10 15 20 25 30 35 40 35 40 45 50; do
ls *(.Lk-$i)|wc -l
end
zsh: parse error near `end'
as you can see, it failed.
i suppose there is no variable
substitution inside globbing brackets.
but I'm sure there must be a way.
any hints?
Sven
Messages sorted by:
Reverse Date,
Date,
Thread,
Author