HP3000-L Archives

October 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"D.A. van Delft" <[log in to unmask]>
Reply To:
D.A. van Delft
Date:
Mon, 30 Sep 1996 22:14:51 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
D.A. van Delft <[log in to unmask]> wrote in article
<[log in to unmask]>...
> David Randall <[log in to unmask]> wrote in article
> <[log in to unmask]>...
> <snip>
>
> > Despite having worked with 3000's for many years now I have either
> forgotten -
> > or never
> > knew - is there a way of listing files in a group in date order
> (modified,
> > accessed or
> > created?)
> >
>
> Ah, one of the many goodies of POSIX. Try the command 'ls' (or, if you
> insist, LS.HPBIN.SYS).
> From the posix shell prompt: 'ls -m', 'ls -u', 'ls -c' for modified,
> accessed, created.

Oops, a slight omission: you need to specify the 't' flag as well. That
will get you the order you want. So:
ls -mt
gives you ordered by modification date. Add the -r flag and it will reverse
the ordering. Add the -l flag and it will give you details. Try 'man ls'
for full details.

Danny.

ATOM RSS1 RSS2