Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.