Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ls -l *(m0) last 24 hours?



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: signature.asc
Description: This is a digitally signed message part.



Messages sorted by: Reverse Date, Date, Thread, Author