From owner-freebsd-questions Wed Nov 20 15:58:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F49C37B401 for ; Wed, 20 Nov 2002 15:58:27 -0800 (PST) Received: from hotmail.com (f165.pav2.hotmail.com [64.4.37.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A1143E3B for ; Wed, 20 Nov 2002 15:58:27 -0800 (PST) (envelope-from howcanthisbe300@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Nov 2002 15:57:51 -0800 Received: from 80.132.155.199 by pv2fd.pav2.hotmail.msn.com with HTTP; Wed, 20 Nov 2002 23:57:51 GMT X-Originating-IP: [80.132.155.199] From: "How Can ThisBe" To: freebsd-questions@FreeBSD.ORG Subject: Re: How to return file date only? Date: Wed, 20 Nov 2002 23:57:51 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Nov 2002 23:57:51.0969 (UTC) FILETIME=[A2EB8510:01C290F0] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG '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 >Subject: Re: How to return file date only? > >On 2002-11-20 23:22, How Can ThisBe 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