From owner-freebsd-questions Fri Oct 12 13:31:44 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 28E6937B409 for ; Fri, 12 Oct 2001 13:31:43 -0700 (PDT) Received: from randy by rip.psg.com with local (Exim 3.33 #1) id 15s8y6-0003rb-00 for freebsd-questions@freebsd.org; Fri, 12 Oct 2001 13:31:42 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-questions@freebsd.org Subject: date of a file Message-Id: Date: Fri, 12 Oct 2001 13:31:42 -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 i want to get the mtime of a file from a shell, so i can format it purty and do something with it. 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? randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message