From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14238 invoked from network); 22 Aug 2005 04:45:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Aug 2005 04:45:25 -0000 Received: (qmail 15249 invoked from network); 22 Aug 2005 04:45:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 04:45:18 -0000 Received: (qmail 2631 invoked by alias); 22 Aug 2005 04:45:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9336 Received: (qmail 2621 invoked from network); 22 Aug 2005 04:45:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Aug 2005 04:45:09 -0000 Received: (qmail 14298 invoked from network); 22 Aug 2005 04:45:09 -0000 Received: from whisk.dreamhost.com (205.196.208.4) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 04:45:05 -0000 Received: from [192.168.1.4] (adsl-68-252-56-170.dsl.wotnoh.ameritech.net [68.252.56.170]) by whisk.dreamhost.com (Postfix) with ESMTP id 31970175127; Sun, 21 Aug 2005 21:45:02 -0700 (PDT) In-Reply-To: <44613de005082113114c9f2092@mail.gmail.com> References: <95E667D6-6AE4-4CDA-B420-30033315C886@tntluoma.com> <44613de005082113114c9f2092@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: zsh-users@sunsite.dk Content-Transfer-Encoding: 7bit From: Timothy Luoma Subject: Re: Extract CTIME in zsh 4.2.3? Date: Mon, 22 Aug 2005 00:44:56 -0400 To: Shawn Halpenny X-Mailer: Apple Mail (2.734) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 On Aug 21, 2005, at 4:11 PM, Shawn Halpenny 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? > > If you can load the zsh/stat module, this is very easy: > > zmodload zsh/stat > stat -F '%Y-%m-%d' +ctime filename Thanks for the reply. I may have my terminology wrong... I'm looking for the created date, the date the file was first made, regardless of when it was last opened or modified. 'stat' seems to change when the file is touch(1)ed I can still see the created date in Finder, so I assume it has to be stored SOMEWHERE. TjL