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
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lpIYZHUbj60EfDNymbj1O9tH0b10Uo7UZVskPAFAKHFYE7x0rZUcIcWCZXYfUUsL9TA4Xv2lhRUehmVFr6xupcHZhhuQzl5lPEYWv7JwL7JmRUzLbaZH7gOnVZh3UBa2kO9K3bEpAdVX5AmTuHgdV3vyytVczfqx7MmMDLTehLw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=cYDYyONzWgDiODVB2WBSizdbcipsutE7HM0d5721PzPx3wdGD0Ov8vAaTnS+se7uGEo9gL90P+LkTpsGDYP1BiQ+JlQrXmljS3G97hlTXHDYuBa2kkehYMXFK2USjJDZy58zHCBTEmDD1DbJcEXpfNBTWDnYQP4JqCiyVKowDDU=
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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.