* ls -l *(m0) last 24 hours?
@ 2010-03-12 16:38 zzapper
2010-03-12 18:48 ` Joke de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: zzapper @ 2010-03-12 16:38 UTC (permalink / raw)
To: zsh-users
Hi
ls -l *(m0) last 24 hours?
ls -l *(m-1) last 24 hours?
I'd always thought that m0 and m-1 meant changed today but in fact they are
giving me the last 24hours
How could i specify just today?
--
zzapper
http://zzapper.co.uk/ Technical Tips
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 16:38 ls -l *(m0) last 24 hours? zzapper
@ 2010-03-12 18:48 ` Joke de Buhr
2010-03-12 18:59 ` Joke de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: Joke de Buhr @ 2010-03-12 18:48 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: Text/Plain, Size: 476 bytes --]
You can use the age calendar function as a globbing function:
http://zsh.sourceforge.net/Doc/Release/Calendar-Function-System.html#SEC229
zmodload -i zsh/stat
ls -l *(e:age $(date +%F):)
On Freitag 12 März 2010 17:38:06 zzapper wrote:
> Hi
>
>
> ls -l *(m0) last 24 hours?
> ls -l *(m-1) last 24 hours?
>
> I'd always thought that m0 and m-1 meant changed today but in fact they are
> giving me the last 24hours
>
> How could i specify just today?
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 18:48 ` Joke de Buhr
@ 2010-03-12 18:59 ` Joke de Buhr
2010-03-12 19:25 ` Benjamin R. Haskell
0 siblings, 1 reply; 8+ messages in thread
From: Joke de Buhr @ 2010-03-12 18:59 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: Text/Plain, Size: 725 bytes --]
I forgot to mention you need to autoload the age function.
zsh/stat should be loaded automatically by age.
autoload -Uz age
ls -l *(e:age $(date +%F):)
On Freitag 12 März 2010 19:48:51 Joke de Buhr wrote:
> You can use the age calendar function as a globbing function:
> http://zsh.sourceforge.net/Doc/Release/Calendar-Function-System.html#SEC229
>
> zmodload -i zsh/stat
> ls -l *(e:age $(date +%F):)
>
> On Freitag 12 März 2010 17:38:06 zzapper wrote:
> > Hi
> >
> >
> > ls -l *(m0) last 24 hours?
> > ls -l *(m-1) last 24 hours?
> >
> > I'd always thought that m0 and m-1 meant changed today but in fact they
> > are giving me the last 24hours
> >
> > How could i specify just today?
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 18:59 ` Joke de Buhr
@ 2010-03-12 19:25 ` Benjamin R. Haskell
2010-03-12 19:42 ` Joke de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin R. Haskell @ 2010-03-12 19:25 UTC (permalink / raw)
To: Joke de Buhr; +Cc: zsh-users
On Fri, 12 Mar 2010, Joke de Buhr wrote:
> I forgot to mention you need to autoload the age function.
> zsh/stat should be loaded automatically by age.
>
>
> autoload -Uz age
> ls -l *(e:age $(date +%F):)
Very cool. Even simpler, though:
ls -l *(e:age today:)
[[Said the man page:
In addition to the special use of days of the week, today and
yesterday[...]
]]
--
Best,
Ben
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 19:25 ` Benjamin R. Haskell
@ 2010-03-12 19:42 ` Joke de Buhr
2010-03-12 19:49 ` Benjamin R. Haskell
0 siblings, 1 reply; 8+ messages in thread
From: Joke de Buhr @ 2010-03-12 19:42 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: Text/Plain, Size: 417 bytes --]
To be clear the texinfo manual at
http://zsh.sourceforge.net/Doc/Release/index-frame.html says the same. It's
not an inconsistenty between the manpage and the infopage.
I should have read it once more not just copying the link.
On Freitag 12 März 2010 20:25:03 Benjamin R. Haskell wrote:
> [[Said the man page:
>
> In addition to the special use of days of the week, today and
> yesterday[...]
> ]]
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 19:42 ` Joke de Buhr
@ 2010-03-12 19:49 ` Benjamin R. Haskell
2010-03-12 20:29 ` Joke de Buhr
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin R. Haskell @ 2010-03-12 19:49 UTC (permalink / raw)
To: Joke de Buhr; +Cc: zsh-users
On Fri, 12 Mar 2010, Joke de Buhr wrote:
> To be clear the texinfo manual at
> http://zsh.sourceforge.net/Doc/Release/index-frame.html says the same.
> It's not an inconsistenty between the manpage and the infopage.
>
> I should have read it once more not just copying the link.
>
No inconsistencies -- I was just pointing out a cool feature that added
to what you'd already shown, and providing a reference as to how I knew
'today' was a valid input. I wrote 'man page', but I actually used
whatever link you sent in the first place (didn't realize it was a
converted 'info' page).
Thanks again.
--
Best,
Ben
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 19:49 ` Benjamin R. Haskell
@ 2010-03-12 20:29 ` Joke de Buhr
2010-03-12 20:44 ` Frank Terbeck
0 siblings, 1 reply; 8+ messages in thread
From: Joke de Buhr @ 2010-03-12 20:29 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: Text/Plain, Size: 785 bytes --]
There are/were a few differences between the manpage and the infopage as far
as I remember. Some code examples not included within the infopage. I can't
remember with ones.
The online version is the generated html output of the info pages. The
manpages and the infopages share different sources so there is always the
chance someone might have missed editing both.
On Friday, 12. March 2010 20:49:28 Benjamin R. Haskell wrote:
> No inconsistencies -- I was just pointing out a cool feature that added
> to what you'd already shown, and providing a reference as to how I knew
> 'today' was a valid input. I wrote 'man page', but I actually used
> whatever link you sent in the first place (didn't realize it was a
> converted 'info' page).
>
> Thanks again.
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: ls -l *(m0) last 24 hours?
2010-03-12 20:29 ` Joke de Buhr
@ 2010-03-12 20:44 ` Frank Terbeck
0 siblings, 0 replies; 8+ messages in thread
From: Frank Terbeck @ 2010-03-12 20:44 UTC (permalink / raw)
To: zsh-users
Joke de Buhr wrote:
> There are/were a few differences between the manpage and the infopage as far
> as I remember. Some code examples not included within the infopage. I can't
> remember with ones.
>
> The online version is the generated html output of the info pages. The
> manpages and the infopages share different sources so there is always the
> chance someone might have missed editing both.
"share different sources"? I don't quite get that one. The manual is
generated from the same yodl markup sources. I don't think there should
be and differences.
Regards, Frank
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-03-12 20:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-12 16:38 ls -l *(m0) last 24 hours? zzapper
2010-03-12 18:48 ` Joke de Buhr
2010-03-12 18:59 ` Joke de Buhr
2010-03-12 19:25 ` Benjamin R. Haskell
2010-03-12 19:42 ` Joke de Buhr
2010-03-12 19:49 ` Benjamin R. Haskell
2010-03-12 20:29 ` Joke de Buhr
2010-03-12 20:44 ` Frank Terbeck
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).