Re: Shell script help - get date of last modified file in hierarchy
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