Sorting by access time in less than one second intervals

David A. Bandel david
Mon May 17 11:39:22 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 25 Oct 2002 09:32:29 -0400 (EDT)
begin  Net Llama! <netllama at linux-sxs.org> spewed forth:

> On Fri, 25 Oct 2002, David A. Bandel wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Thu, 24 Oct 2002 21:46:56 -0400
> > begin  Joel Hammer <Joel at hammershome.com> spewed forth:
> >
> > > I would like to be able to use a simple bash script to sort files in
> > > a directory by their access times. Unfortunately, the access times
> > > are frequently within one second of each, other, so, they appear to
> > > have the same access times when listed by ls. Is there a way to make
> > > ls or a similar simple bash tool show file times in smaller units?
> >
> > ls --full-time
> 
> AFAIK, that shows the full date & timestamp, however the timestamp is
> still HH:MM:SS.

bash-2.05b$ ls --full-time xshipwars.png
- -rw-r--r--    1 david    david       88927 2002-10-23 09:46:43.000000000
- -0500 xshipwars.png

looks to me like I have a whole bunch of places after the seconds decimal.
 Not sure if they're ever used, but they're there.

Anyway, I think the thing for the person asking to do is just use ls -lt
or ls -lu (for a sort by modification time or access time respectively).

Ciao,

David A. Bandel
- -- 

Focus on the dream, not the competition.
		-- Nemesis Racing Team motto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9uVAn3uVcotqGMQcRAuSRAJsHvAD4hwBEvFSFm1Hxm+q4s5RduwCggKtn
6CbsFDOdMicTfusim6gRJuk=
=0xyZ
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list