Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2010 10:40:38 -0600
From:      Chad Perrin <perrin@apotheon.com>
To:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: how to tell "ls" output date in digital
Message-ID:  <20100909164038.GA57863@guilt.hydra>
In-Reply-To: <20100909142907.GA83383@gizmo.acns.msu.edu>
References:  <20100909112421.GA31640@ozzmosis.com> <D8C36EFEB4C0184AA78AC5F2A015E18B043F0D@MAIL504.KDS.KEANE.COM> <20100909142907.GA83383@gizmo.acns.msu.edu>

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

--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 09, 2010 at 10:29:08AM -0400, Jerry McAllister wrote:
> On Thu, Sep 09, 2010 at 01:11:39PM +0000, Pala, Santosh wrote:
>=20
> > Hi Andrew,
> >=20
> > The ls command with -E switch will give the required output.=20
>=20
> Doesn't for me.
> Says -E is an illegal option.

It works with AT&T's version of ls, apparently.  I'm pretty sure it
doesn't work with either BSD ls or GNU ls, though, so I'm not sure how it
ended up being mentioned in this discussion.


>=20
> Running FreeBSd 8.1 stock ls.
>=20
> On the other hand,   ls -lD "%F %T %Z"   does nicely.

=2E . . and you can easily alias that to lsd for easier use (and a
chuckle).

Note that this doesn't work with GNU ls, because Stallman and MacKenzie
in their infinite wisdom decided GNU ls needed -D to produce output
tailored to some Emacs functionality.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkyJDgYACgkQ9mn/Pj01uKWDLwCg6/4PVkQjKrhQVS+C2luGD7CL
He4AoJofwA8uwTpgcZec+9s9WUzmWjFY
=UcER
-----END PGP SIGNATURE-----

--HlL+5n6rz5pIUxbD--



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