Date: Fri, 12 Oct 2001 13:31:42 -0700 From: Randy Bush <randy@psg.com> To: freebsd-questions@freebsd.org Subject: date of a file Message-ID: <E15s8y6-0003rb-00@rip.psg.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15s8y6-0003rb-00>