zsh-users
 help / color / mirror / code / Atom feed
* var expansion in glob pattern?
@ 2002-03-23 18:56 Sven Guckes
  2002-03-23 19:36 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Guckes @ 2002-03-23 18:56 UTC (permalink / raw)
  To: ZShell Users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-24  0:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-23 18:56 var expansion in glob pattern? Sven Guckes
2002-03-23 19:36 ` Bart Schaefer
2002-03-23 19:54   ` Bart Schaefer
2002-03-24  0:19     ` Sven Guckes
2002-03-24  0:12   ` var expansion in glob pattern? - s/end/done/ ! Sven Guckes

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).