From owner-freebsd-questions Sat Oct 13 0:24: 8 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 3793737B408 for ; Sat, 13 Oct 2001 00:24:06 -0700 (PDT) Received: from randy by rip.psg.com with local (Exim 3.33 #1) id 15sJ9L-000Hfy-00; Sat, 13 Oct 2001 00:23:59 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike Meyer Cc: questions@freebsd.org Subject: Re: date of a file References: <73720831@toto.iv> <15303.43126.44123.116068@guru.mired.org> Message-Id: Date: Sat, 13 Oct 2001 00:23:59 -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 > date +%y%m%d-%H%M%S -jf "%b %d %H:%M:%S" `ls -lT filename | awk ' { print $6, $7, $8, $9 } '` i have tried many variations on this, and all fail as follows: rip.psg.com:/usr/home/randy> date -j +%y%m%d-%H%M%S -f '%b %d %T %Y' `ls -lT 2borg | awk '{print $6, $7, $8, $9}'` date: illegal time format usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] yes, this all seems in accord with what 'man strftime' shows me. randy, feeling stoopid To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message