• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell script help - get date of last modified file in hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script help - get date of last modified file in hierarchy


  • Subject: Re: Shell script help - get date of last modified file in hierarchy
  • From: "Mark J. Reed" <email@hidden>
  • Date: Tue, 27 Mar 2007 08:52:44 -0400

On 3/27/07, Mark J. Reed <email@hidden> wrote:
You would need ls -tR, and even then I don't think that works.  I'm
not at a computer, but iirc the sorting options to ls  only affect how
each directory's immediate children are listed, rather than sorting
the whole hierarchy.

Ï just confirmed that behavior. I also concocted a solution using find -newer and -exec touch -r, but it seems that find(1) stats the argument to -newer only once, so that didn't work. So far an external scripting language still seems like the way to go.

I don't suppose the Finder has a "newest file" field...?

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Shell script help - get date of last modified file in hierarchy (From: Mark Walsh <email@hidden>)
 >Re: Shell script help - get date of last modified file in hierarchy (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Shell script help - get date of last modified file in hierarchy
  • Next by Date: Storing Mail on a Server
  • Previous by thread: Re: Shell script help - get date of last modified file in hierarchy
  • Next by thread: Re: Shell script help - get date of last modified file in hierarchy
  • Index(es):
    • Date
    • Thread