zsh-users
 help / color / mirror / code / Atom feed
* file globbing
@ 2021-08-05 15:14 Ray Andrews
  2021-08-05 15:27 ` Peter Stephenson
  0 siblings, 1 reply; 15+ messages in thread
From: Ray Andrews @ 2021-08-05 15:14 UTC (permalink / raw)
  To: Zsh Users

Say I have these files:

      0 [2021-08-05--07:58] d,1
      0 [2021-08-05--07:59] d,1,first
      0 [2021-08-05--07:59] d,1,second

I want a glob that captures them all but:

     $ print -l d,1[^[:digit:]]*(N)
     d,1,first
     d,1,second

... I need a second go:

     $ print -l d,1
     d,1

I'm expecting that no character after the '1' in 'd,1' is 'not a digit', 
so the first filter should capture 'd,1', but as we see, the second 
filter is needed.  It seems that the first filter should read: "not a 
digit but not nothing either".  Can the first filter  be improved to 
grab them all?



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

end of thread, other threads:[~2021-08-09 10:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05 15:14 file globbing Ray Andrews
2021-08-05 15:27 ` Peter Stephenson
2021-08-05 15:36   ` Peter Stephenson
2021-08-05 16:05     ` Ray Andrews
2021-08-05 16:48       ` Vincent Lefevre
2021-08-05 18:22         ` Ray Andrews
2021-08-05 18:53           ` Bart Schaefer
2021-08-05 17:52       ` Lawrence Velázquez
2021-08-08 15:07       ` Stephane Chazelas
2021-08-08 16:19         ` Ray Andrews
2021-08-08 18:28           ` Lawrence Velázquez
2021-08-08 22:24           ` Vincent Lefevre
2021-08-09  0:41             ` Ray Andrews
2021-08-09 10:46             ` Stephane Chazelas
2021-08-05 15:49   ` Ray Andrews

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).