From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 21:00:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C9431065675 for ; Tue, 3 Jan 2012 21:00:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id E3BFF8FC15 for ; Tue, 3 Jan 2012 21:00:26 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id C36242974E; Tue, 3 Jan 2012 22:00:25 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q03L0PYC002880; Tue, 3 Jan 2012 22:00:25 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 3 Jan 2012 22:00:25 +0100 From: Polytropon To: Dan Nelson Message-Id: <20120103220025.823e078f.freebsd@edvax.de> In-Reply-To: <20120103204902.GG24192@dan.emsphone.com> References: <20120103211150.41f1934d.freebsd@edvax.de> <20120103204902.GG24192@dan.emsphone.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Exact timestamp for sorting and renaming files according to creation order X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 21:00:27 -0000 On Tue, 3 Jan 2012 14:49:02 -0600, Dan Nelson wrote: > If you ask for the date to be printed in "float" (F) format, it gives more > precision. The default is unsigned int (U) format. > > % stat -f "%N %FB" /COPYRIGHT > /COPYRIGHT 1306190895.046721049 Strangely, I only get a 000000000 "suffix" for any time stamp, no matter if I create the file or apply the command as shown above to an existing file: % stat -f "%N %FB" /COPYRIGHT /COPYRIGHT 1313951230.000000000 Am I missing some file system feature? Otherwise, this _exactly_ looks like what I'm searching for. It doesn't need to be a "human-readable" date representation. by the way, I'm running FreeBSD 8.2-STABLE/x86 of late August 2011 here, file system used is UFS2. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...