From: Timothy Luoma <lists@tntluoma.com>
To: zsh-users@sunsite.dk
Subject: SOLVED (more or less) Re: Extract CTIME in zsh 4.2.3?
Date: Mon, 22 Aug 2005 14:44:23 -0400 [thread overview]
Message-ID: <EB587E19-042D-4245-A2AD-272A0E9A8D9A@tntluoma.com> (raw)
In-Reply-To: <1050822152140.ZM7412@candle.brasslantern.com>
Yes, from my extensive testing of one FreeBSD system, one Linux
(Gentoo) system, and one OS X system, there does not seem to be a
consistent way of getting this information.
'stat' on OS X does not seem to store the created date. That killed
the best chance for compatibility right there.
There are a couple of different ways to get it in OS X.
Tiger:
mdls "${FILES}" | awk -F'"' '/kMDItemContentType /{print $2}'
gives me
2005-08-20
If developer tools are installed:
/Developer/Tools/GetFileInfo "${FILES}" | awk -F' ' '/created: /
{print $2}'
gives me
08/20/2005
which isn't the format I wanted, so I'm sticking with 'mdls' for now.
Thanks to all who responded!
TjL
next prev parent reply other threads:[~2005-08-22 18:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-21 20:01 Timothy Luoma
2005-08-21 20:11 ` Shawn Halpenny
2005-08-22 4:44 ` Timothy Luoma
2005-08-22 5:27 ` Timothy Luoma
2005-08-22 15:21 ` Bart Schaefer
2005-08-22 18:44 ` Timothy Luoma [this message]
2005-08-22 15:24 ` Shawn Halpenny
2005-08-22 15:35 ` DervishD
2011-07-26 15:24 ` skullnobrains
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EB587E19-042D-4245-A2AD-272A0E9A8D9A@tntluoma.com \
--to=lists@tntluoma.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).