Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2010 16:14:55 -0700
From:      "Guojun Jin" <gjin@ubicom.com>
To:        "Eitan Adler" <lists@eitanadler.com>
Cc:        questions@freebsd.org
Subject:   RE: how to tell "ls" output date in digital
Message-ID:  <CB2DD11991B27C4F99935E6229450D3205E9EF8D@STORK.scenix.com>
In-Reply-To: <AANLkTinn-kgp0FGshQUcL%2BhXvJs=ENk0UnOcKWgY_pg6@mail.gmail.com>
References:  <CB2DD11991B27C4F99935E6229450D3205E9EF86@STORK.scenix.com> <AANLkTinn-kgp0FGshQUcL%2BhXvJs=ENk0UnOcKWgY_pg6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

No D option in ls:

[162] bsd-ms: ls -lD "+%F %H:%M"
ls: illegal option -- D
usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

[163] bsd-ms: uname -a
FreeBSD bsd-ms 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Thu Mar  5 11:51:50 PST 2009

-----Original Message-----
From: Eitan Adler [mailto:lists@eitanadler.com] 
Sent: Wednesday, September 08, 2010 4:09 PM
To: Guojun Jin
Cc: questions@freebsd.org
Subject: Re: how to tell "ls" output date in digital

On Wed, Sep 8, 2010 at 7:03 PM, Guojun Jin <gjin@ubicom.com> wrote:
> I remember that "ls" can output date in digital like following format

ls -lD "format"
check strftime(3) for details on format.




-- 
Eitan Adler


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