Try this: "ls -ltr" It will give you a long listing in reverse time
order....the freshest files will be at the bottom of the listing.
----- Original Message -----
From: Ray Olszewski <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 2:37 PM
Subject: Re: Directory listing sorting (oops)
> At 05:12 PM 6/30/00 -0500, Jim Reimer wrote:
> >ls -lRc sorts individual directories by time.....
> >
> >any good way to get a "unified" sorted listed (of all subdirectories)
> >without resorting to 'sort'?
>
> I looked for one when you first posted, but this was as close as I could
get
> too (which is why I didn't bother responding). The basic problem as I see
it
> is that ls itself doesn't do uinfied sorting across directories, and the
> form in which it outputs the date and time doesn't facilitate using a
> program like "sort" to do the ordering. The big problerm here, BTW, is
that
> the contents of the seventh field in the output varies (sometimes a year,
> sometimes a time of day).
>
> My best guess is that to do what you want, I'd have to write a perl
program
> that catches the output of ls, parses it appropriately (to turn the
> human-readable timestamp into a single, sortable field), and does the
sort.
>
> Of course, what I can do in perl, others can do with a shell script and
the
> usual suspects -- sed, awk, sort, and so forth. But either way, it is
> probably a more complex solution than what you were hoping for.
>
>
> --
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski -- Han Solo
> Palo Alto, CA [EMAIL PROTECTED]
> ----------------------------------------------------------------
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs