ls -l -R | sort +0.43
ought to sort the files/directories by date.
(+0.43 is tells sort to sort on field 0, offset to the 43rd character.
there's a not-very-good explanation of that in the man page for sort.)
can't help much with your second question (sorry).
Dan de Haan wrote:
>
> I have a directory with several subdirectories. What I wan to do is get a
> list of all the files that are in there, and the directories below (ls -R
> like) sorted by the creation date. I have tries ls -l -R | sort <several
> different options> but I can't get it to work.
>
> I would also like to find out which file in these directories are new from
> the last 5 days. How would I do that?
>
> -Dan
>
> -
> 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
--
Regards,
Jim Reimer - WA5RRH
[EMAIL PROTECTED]
http://www.webzone.net/jdreimer
-
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