Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extract CTIME in zsh 4.2.3?
- X-seq: zsh-users 9335
- From: Shawn Halpenny <paxunix@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Extract CTIME in zsh 4.2.3?
- Date: Sun, 21 Aug 2005 16:11:09 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hX+ZYPWQJRdFqIcwCrgqv5uvw3ZTsxlqCDGCNfT6FAQBPrXCKrJJ7BbKsim2SfonD3fI+mAAd+F8w2Epqy9qvGuXopDmwO4ABF9wmaYbqXbAql8+NiiuuaxsQ9Yp3VlHA85hPdVybEu7FurIdxX6RdoH6g8ka9Oets3D95WhLvQ=
- In-reply-to: <95E667D6-6AE4-4CDA-B420-30033315C886@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <95E667D6-6AE4-4CDA-B420-30033315C886@xxxxxxxxxxxx>
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