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

Re: Extract CTIME in zsh 4.2.3?



On 8/21/05, Timothy Luoma <lists@xxxxxxxxxxxx> wrote:
> 
> I have a list of files, I'd like to extract the ctime from the files,
> preferably in yyyy-mm-dd format.
> 
> I can't figure out any way to do that.  Is it possible?
> 
> TjL
> zsh version 4.2.3 on Mac OS X

If you can load the zsh/stat module, this is very easy:

zmodload zsh/stat
stat -F '%Y-%m-%d' +ctime filename

-- 
Shawn Halpenny



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