Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 23:57:51 +0000
From:      "How Can ThisBe" <howcanthisbe300@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to return file date only?
Message-ID:  <F165VMFgnjXXBARdkfw00002bf1@hotmail.com>

next in thread | raw e-mail | index | archive | help
'stat' does not seem to be installed (at least by default) on a FreeBSD 
4.7-STABLE system

$ stat -f '%c' .
stat: not found

Any other ideas?


>From: Giorgos Keramidas <keramida@ceid.upatras.gr>
>Subject: Re: How to return file date only?
>
>On 2002-11-20 23:22, How Can ThisBe <howcanthisbe300@hotmail.com> wrote:
> > I am trying to return the creation date of a file in MMDDhhmmYY
> > format. I'm sure there is a command, I just can not find it.
> >
> > Under cygwin the command is `date +%m%d%H%M%y -r $FILE`, however
> > FreeBSD does not have this function with 'date'
>
>FreeBSD has stat(1).
>
>keramida@gothmog[01:50]/home/keramida> stat -f '%c' .
>1037835701


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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?F165VMFgnjXXBARdkfw00002bf1>