zsh-users
 help / color / mirror / code / Atom feed
* Files modified after a given date
@ 1999-08-22 16:31 Vincent Lefevre
  1999-08-22 16:44 ` Bruce Stephens
  0 siblings, 1 reply; 10+ messages in thread
From: Vincent Lefevre @ 1999-08-22 16:31 UTC (permalink / raw)
  To: zsh-users

Is there a way to get the files modified after a given date (as a
glob qualifier), the date being given as the number of seconds since
the origin?

-- 
Vincent Lefèvre <vincent@vinc17.org> - PhD student in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, Faits divers insolites, etc.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Files modified after a given date
@ 1999-08-23  8:09 Sven Wischnowsky
  1999-08-27 21:51 ` Gabor
  0 siblings, 1 reply; 10+ messages in thread
From: Sven Wischnowsky @ 1999-08-23  8:09 UTC (permalink / raw)
  To: zsh-users


Bruce Stephens wrote:

> Vincent Lefevre <vincent@vinc17.org> writes:
> 
> > On Sun, Aug 22, 1999 at 17:44:45 +0100, Bruce Stephens wrote:
> > > Assuming I'm understanding the question correctly, no.  You can (in
> > > 3.1.6, anyway), get files modified since some time relative to the
> > > current time:
> > > 
> > >         *.c(ms-30)
> > > 
> > > expands to C files modified in the last 30 seconds, for example.
> > 
> > But I don't want it to be relative to the current time.
> 
> In which case, I don't think there's a builtin glob way of doing it.
> You could write a function using the stat module, but I don't think we
> have user-defined glob patterns yet?
> 
>         zmodload stat; builtin stat -H foo .zshrc; echo $foo[mtime]
> 
> prints 934038501, for me.

I've been wishing for this since I added the granularity modifiers for 
the a/m/c glob qualifiers. The problem is that we would need to be
able to parse date/time strings, of course, which isn't trivial...

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~1999-08-28 10:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-22 16:31 Files modified after a given date Vincent Lefevre
1999-08-22 16:44 ` Bruce Stephens
1999-08-22 17:17   ` Vincent Lefevre
1999-08-22 18:55     ` Bruce Stephens
1999-08-22 19:26       ` Vincent Lefevre
1999-08-23  8:09 Sven Wischnowsky
1999-08-27 21:51 ` Gabor
1999-08-27 22:09   ` Bruce Stephens
1999-08-27 22:43   ` Bart Schaefer
1999-08-27 23:44     ` Gabor

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