Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2001 00:23:59 -0700
From:      Randy Bush <randy@psg.com>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: date of a file
Message-ID:  <E15sJ9L-000Hfy-00@rip.psg.com>
References:  <73720831@toto.iv> <15303.43126.44123.116068@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15sJ9L-000Hfy-00>