Sorting by access time in less than one second intervals
Net Llama!
netllama
Mon May 17 11:39:22 PDT 2004
On Fri, 25 Oct 2002, David A. Bandel wrote:
> -----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.
I'd say they're prolly not used, or you have an amzing abilitiy to alter
files exactly on the second mark.
However, bash-2.0.5.8 that comes with RH-7.2 doesn't seem to have this
functionality:
# ls --full-time magic
-r--r--r-- 1 root root 12441 Fri Sep 28 05:53:03 2001 magic
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list