From owner-freebsd-questions Fri Oct 12 18:24:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by hub.freebsd.org (Postfix) with ESMTP id BC0AE37B401 for ; Fri, 12 Oct 2001 18:24:10 -0700 (PDT) Received: from randy by rip.psg.com with local (Exim 3.33 #1) id 15sDX7-0006zK-00; Fri, 12 Oct 2001 18:24:09 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: swear@blarg.net (Gary W. Swearingen) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: date of a file References: <9k669ks5c3.69k@localhost.localdomain> Message-Id: Date: Fri, 12 Oct 2001 18:24:09 -0700 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 >> 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