Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Oct 2001 18:24:09 -0700
From:      Randy Bush <randy@psg.com>
To:        swear@blarg.net (Gary W. Swearingen)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: date of a file
Message-ID:  <E15sDX7-0006zK-00@rip.psg.com>
References:  <E15s8y6-0003rb-00@rip.psg.com> <9k669ks5c3.69k@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
>> in gnu-sh-utils, i can, for example,
>>    date -r filename +%y%m%d-%H%M%S
>> but, in freebsd, "date -r" says give me the current date in seconds of the
>> epoch.
>> what should i be doing?
> Using python or perl or awk?  This gets close:
> ls -lT filename | awk '{printf "%s %s %s %s\n",$9,$6,$7,$8}'

aha!  i missed the -T option.  i can hack from that.  but what a grotty
kludge.

thanks.

randy

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15sDX7-0006zK-00>