What about just doing a

  find . -printf "%T@ " -exec /bin/ls -ld {} \;|sort -rn|sed "s/[0-9]* //"


On Sat, 1 Jul 2000, Ray Olszewski wrote:

  >>   Date: Sat, 01 Jul 2000 08:34:43 -0700
  >>   From: Ray Olszewski <[EMAIL PROTECTED]>
  >>   To: Gerry Mullins <[EMAIL PROTECTED]>,
  >>       [EMAIL PROTECTED]
  >>   Subject: Re: Directory listing sorting (oops)
  >>   
  >>   At 07:58 PM 3/5/98 -0800, Gerry Mullins wrote:
  >>   >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.
  >>   
  >>   Thanks, Gerry, but I think you missed the important part of the original
  >>   question.
  >>   
  >>   What you suggest works fine for the files in one directory. But he wants to
  >>   get a listing that includes files in subdirectories (by including -R, the
  >>   recursion flag, in the ls options), and get a union list sorted by
  >>   timestamp. Procedures like the one you posted (one without the -r flag would
  >>   probably be better for his purposes) work fine for sorts that are directory
  >>   by directory, but they do not produce one unified list when used with the -R
  >>   flag.
  >>   

   Dieter
==============================                  
        TransAction Software GmbH       Dieter Killar  (NIC-Handle: DK416-RIPE)
        Gustav-Heinemann-Ring 109       [EMAIL PROTECTED]
        81739 Munich                    Tel.: (+49)89/62709-157
        Germany                         Fax : (+49)89/62709-11
==============================                  


-
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

Reply via email to